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

Home > Just Math
Yearly Division (Posted on 2015-07-22) Difficulty: 3 of 5
Find the smallest number that, when divided successively by 15, 151, 1515 and 15151, leaves the remainders 1, 15, 151, and 1515 respectively.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution Comment 1 of 1
The first number when that leaves 1 after division by 15 is 16.

Adding 15 until a number leaving 15 after division by 151, brings up 166.

15 and 151 are relatively prime, so we need to increase by 15*151 enought times to get a number with remainder 151 after division by 1515, and it's 4696.

The LCM of 15, 151 and 1515 is just 151*1515.  Adding as many of these to get a remainder of 1515 after division by 15151 brings us to the answer: 71150611. The mechanics done by:

   10   N=16
   20   while N @ 151<>15:N=N+15:wend
   30   print N
   40   Incr=15*151
   50   while N @ 1515<>151
   60     N=N+Incr
   70   wend
   80   print N
  140   Incr=151*1515
  150   while N @ 15151<>1515
  160     N=N+Incr
  170   wend
  180   print N



  Posted by Charlie on 2015-07-22 13:39:52
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 (12)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

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