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

Home > Numbers
15-Digits and Repunit Division (Posted on 2010-01-07) Difficulty: 3 of 5
Determine all possible value(s) of a 15-digit base ten positive integer N which is constituted entirely by the digits 2 and 3, such that N is divisible by the base ten repunit R7.

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.)
mathematica solution | Comment 1 of 4

R[n_]:=(10^n-1)/9;
tps=Tuples[{2,3},15];
r7=R[7];
For[i=1,i
„TLength[tps],++i,
n=FromDigits[tps[[i]]];
If[Mod[n,r7]
ƒú0,Print[n," = ",n/r7," * ",r7];];
];

gives only 1 solution

233333323333332 = 210000012 * 1111111


  Posted by Daniel on 2010-01-07 12:53:17
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 (3)
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