Last visit was: 19 Nov 2025, 13:29 It is currently 19 Nov 2025, 13:29
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
605-655 Level|   Graphs|                  
User avatar
bmwguy
Joined: 20 Feb 2012
Last visit: 24 Aug 2012
Posts: 2
Own Kudos:
185
 [182]
Given Kudos: 10
Posts: 2
Kudos: 185
 [182]
32
Kudos
Add Kudos
148
Bookmarks
Bookmark this Post
Most Helpful Reply
avatar
aberz
Joined: 19 May 2014
Last visit: 20 May 2014
Posts: 1
Own Kudos:
33
 [33]
Posts: 1
Kudos: 33
 [33]
26
Kudos
Add Kudos
6
Bookmarks
Bookmark this Post
User avatar
LalaB
User avatar
Current Student
Joined: 23 Oct 2010
Last visit: 17 Jul 2016
Posts: 227
Own Kudos:
1,328
 [25]
Given Kudos: 73
Location: Azerbaijan
Concentration: Finance
Schools: HEC '15 (A)
GMAT 1: 690 Q47 V38
Schools: HEC '15 (A)
GMAT 1: 690 Q47 V38
Posts: 227
Kudos: 1,328
 [25]
19
Kudos
Add Kudos
6
Bookmarks
Bookmark this Post
General Discussion
avatar
Nwsmith11
Joined: 28 Apr 2013
Last visit: 19 May 2021
Posts: 9
Own Kudos:
28
 [10]
Given Kudos: 3
GMAT Date: 08-03-2013
GPA: 3.3
WE:Supply Chain Management (Military & Defense)
Posts: 9
Kudos: 28
 [10]
10
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I understand the first value greater than zero for T is 24 as this is the first iteration but we don't output a value for T from the flow chart until b=1 so until we can get b=1 from 37 (b-1 then b/2) we never actually output a value for T. From a computer programming perspective I think this question if flawed if the answer to the first part is 24.
User avatar
mattce
Joined: 03 Jun 2013
Last visit: 08 Jan 2016
Posts: 69
Own Kudos:
606
 [5]
Given Kudos: 3
Status:Training
Location: Canada
GPA: 3.7
Products:
Posts: 69
Kudos: 606
 [5]
5
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Nwsmith11
I understand the first value greater than zero for T is 24 as this is the first iteration but we don't output a value for T from the flow chart until b=1 so until we can get b=1 from 37 (b-1 then b/2) we never actually output a value for T. From a computer programming perspective I think this question if flawed if the answer to the first part is 24.

Hey,

Whether or not a value is actually an 'output' is irrelevant; usually, in a program, this may be implemented as showing the user a value, or perhaps passing the value to another process.

If they ask about the 'value of T', all that matters is what value it takes on in memory; if you were stepping through the program in a debugger, and you checked for what the variable 'T' contains in memory at each step, you would see all of those values changing regardless of the value actually being 'outputted'.

Hope that helps.
User avatar
mattce
Joined: 03 Jun 2013
Last visit: 08 Jan 2016
Posts: 69
Own Kudos:
606
 [3]
Given Kudos: 3
Status:Training
Location: Canada
GPA: 3.7
Products:
Posts: 69
Kudos: 606
 [3]
3
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I agree that given the particular questions that they asked about this pattern, solving it this way is probably the easiest. If they asked questions that required looping through the block diagram many times, however, I feel that pattern recognition would be very important for maximizing time efficiency.

For example, suppose that the first question asked "What is the final value of T?" In that case, iterating through the loop would be too mechanical, and I think it would be more useful to recognize the pattern and calculate the final answer that way.

So essentially, we see that with B = 35 as an initial value, the highest power of 2 contained within 35 is 5, so we know that A will be doubled 5 times, making the final value for A equivalent to 24 * 2^5 = 24*32 = 768. From there, we recognize that A is added to T for every time B takes on an odd value: starting with 35, we can quickly see that 35 is odd, 17 is odd, and 1 is odd, so T will be composed of the first, second, and last values that are taken on by A; i.e, 24, 24*2, 24*32 = 24*35 = 840.

In fact, this algorithm just implements T = A * B, which would be crucial to recognize if we were given very large numbers. I suppose a formal proof for this is probably going too far, but here's a somewhat intuitive explanation:

Suppose we have some arbitrary value for A, and B = 61. The highest power of 2 that is less than 61 is 5 (32), so we know that A will be doubled 5 times; i.e, multiplied by 32. So to get T = A*61, we need to show that T is composed of A*32 + A*(61-32 = 29). Since we know that only A*(powers of 2) are added to T, we can break down T as follows:

61 = 32 + 16 + 8 + 4 + 1 = the sum of the following powers of 2: (0, 2, 3, 4, 5). We can see this relationship by breaking down B = 61 as follows:

61 - 1 = 60 ---------------------------------- Odd
60/2 = 30 -------------- First Halving; 2^1
30/2 = 15, 15-1 = 14 ---- 2^2 ---------------- Odd
14/2 = 7, 7-1 = 6 ------- 2^3 ---------------- Odd
6/2 = 3, 3-1 = 2 -------- 2^4 ---------------- Odd
2/2 = 1 ---------------- 2^5 ---------------- Odd

* Sorry for the poor formatting *

We can see that the number is halved 5 times, corresponding to the 5 times that A is doubled. Beside each layer is marked the corresponding 'doubling' of A.

Now, we recognize that an odd number is encountered at the 2^0, 2^2, 2^3, 2^4, and 2^5 layers, meaning we would be adding A*(1 + 4 + 8 + 16 + 32) to T, equating to 61*A.

I know that was kind of long-winded but hopefully it's useful/interesting to someone. I found it pretty neat.
User avatar
bb
User avatar
Founder
Joined: 04 Dec 2002
Last visit: 19 Nov 2025
Posts: 42,387
Own Kudos:
82,118
 [10]
Given Kudos: 24,110
Location: United States
GMAT 1: 750 Q49 V42
GPA: 3
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
GMAT 1: 750 Q49 V42
Posts: 42,387
Kudos: 82,118
 [10]
7
Kudos
Add Kudos
3
Bookmarks
Bookmark this Post
Nwsmith11
I understand the first value greater than zero for T is 24 as this is the first iteration but we don't output a value for T from the flow chart until b=1 so until we can get b=1 from 37 (b-1 then b/2) we never actually output a value for T. From a computer programming perspective I think this question if flawed if the answer to the first part is 24.


#1 is a slightly confusing question but it is a HARD ONE. The question asks for the "First Value of T" and that assumes not actually calculating the whole process and providing output. The question is asking for Value rather than Output. This was really a "paying attention" question.
User avatar
bumpbot
User avatar
Non-Human User
Joined: 09 Sep 2013
Last visit: 04 Jan 2021
Posts: 38,587
Own Kudos:
Posts: 38,587
Kudos: 1,079
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Hello from the GMAT Club BumpBot!

Thanks to another GMAT Club member, I have just discovered this valuable topic, yet it had no discussion for over a year. I am now bumping it up - doing my job. I think you may find it valuable (esp those replies with Kudos).

Want to see all other topics I dig out? Follow me (click follow button on profile). You will receive a summary of all topics I bump in your profile area as well as via email.
Moderators:
Math Expert
105390 posts
496 posts