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

Home > Just Math
Last 2007 digits (Posted on 2012-05-12) Difficulty: 3 of 5
Determine the total count of positive integers n between 1 and 102007 inclusively such that the last 2007 digits of n and n3 are the same. (If n or n3 has fewer than 2007 digits, treat it as if it had zeros on the left to compare the last 2007 digits.)

No Solution Yet Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Possible solution | Comment 2 of 3 |
If the last 2007 digits of n and n^3 are the same, then n^3-n is divisible by 10^2007. n^3-n=n(n-1)(n+1), so n(n-1)(n+1) is divisible by 10^2007.

One way for n(n-1)(n+1) to be divisible by 10^2007 is that n is divisible by 10^2007. That gives n=10^2007. n-1 could be divisible by 10^2007, which gives n=1. n+1 could be divisible by 10^2007, which gives 10^2007-1. Therefore, 3 solutions are 1, 10^2007-1, and 10^2007.

Also, n could be divisible by 2^2007 and n-1 could be divisible by 5^2007. This gives a number ending in 09376 (A018248). If n is divisible by 5^2007 and n-1 is divisible by 2^2007, then n is a number ending in 90625 (A018247). If n is divisible by 2^2007 and n+1 is divisible by 5^2007, then n ends in 90624 (A091664). If n is divisible by 5^2007 and n+1 is divisible by 2^2007, then n ends in 09375 (A091663). If n-1 is divisible by 2^2007 and n+1 is divisible by 5^2007, then n ends in 81249 (A091661). If n-1 is divisible by 5^2007 and n+1 is divisible by 2^2007, then n ends in 18751 (A063006). Therefore, there are 6 more solutions.

If n-1 is divisible by 5*10^2006 but not by 10^2007, then n+1 has to be divisible by 2, so n(n-1)(n+1) is divisible by 10^2007. This gives a new solution n=5*10^2006+1. If n+1 is divisible by 5*10^2006 but not by 10^2007, then n=5*10^2006-1. Therefore, there are 2 new solutions.

There are also new solutions with 2^2006. If n is divisible by 5^2007 and n-1 is divisible by 2^2006 but not by 2^2007, then n+1 is divisible by 2, so n(n-1)(n+1) is divisible by 10^2007. This gives a new solution ending in 90625 (A018247+5*10^2006). If n is divisible by 5^2007 and n+1 is divisible by 2^2006 but not by 2^2007, then n is a new solution ending in 09375 (A091663+5*10^2006). If n-1 is divisible by 2^2006 but not by 2^2007 and n+1 is divisible by 5^2007, then n+1 is also divisible by 2, so n is a new solution ending in 81249 (A091661+5*10^2006). If n-1 is divisible by 5^2007 and n+1 is divisible by 2^2006 but not by 2^2007, then n is a new solution ending in 18751 (A063006+5*10^2006). Therefore, there are 4 new solutions. These are all the solutions, so there are 15 solutions for n.


  Posted by Math Man on 2012-05-14 10:28:09
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (14)
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