All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Coin Stack Manipulation (Posted on 2025-05-17) Difficulty: 4 of 5
There are 1001 stacks of coins S1, S2, ..., S1001. Initially, stack Sk has k coins for each k = 1,2, ...,1001. In an operation, one selects an ordered pair (i,j) of indices i and j satisfying 1 ≤ i < j ≤ 1001 subject to two conditions:

The stacks Si and Sj must each have at least 1 coin.
The ordered pair (i,j) must not have been selected before. Then, if Si and Sj have a coins and b coins respectively, one removes gcd(a,b) coins from each stack.

What is the maximum number of times this operation could be performed?

No Solution Yet Submitted by Danish Ahmed Khan    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: An upper bound and a possible solution Comment 2 of 2 |
(In reply to An upper bound and a possible solution by Steve Herman)

No hand-waving needed.  Any two consecutive numbers are relatively prime so just ensure there are always two consecutive.  Suppose 5 piles

1 2 3 4 5
1 2 3 3 4
1 2 2 3 3
1 1 2 3 2
0 1 2 3 1
0 1 1 2 1
0 0 1 1 1

Expand this idea to 1001 piles. 
You'll have 500 0's followed by 501 1's.

  Posted by Jer on 2025-05-17 22:51:06
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (8)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2025 by Animus Pactum Consulting. All rights reserved. Privacy Information