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

Home > Just Math
Remainder With 3’s And 7’s (Posted on 2008-11-02) Difficulty: 2 of 5
P is a positive decimal (base 10) integer consisting entirely of the digit 3, and Q is a positive decimal integer consisting entirely of the digit 7. In the base-10 expansion of P*Q, the digit 3 is repeated precisely three times and the digit 7 is repeated precisely seven times. The product P*Q may consist of other digits besides 3 and 7.

Given that N is the minimum value of P*Q, determine the remainder when N is divided by 37.

Note: Try to derive a non computer assisted method, although computer programs/spreadsheet solutions are welcome.

See The Solution Submitted by K Sengupta    
Rating: 4.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution Comment 3 of 3 |
For the following, a subscripted number preceding the bracketed base digit(s) will represent the occurance of the base digit(s) that number of times, e.g. 3[123] = 123123123 ; and || indicates the concatenation of the digits, e.g., 123 || 45 = 12345.

We are given P as 3 x a[1] and Q as 7 x b[1], such that a and b are integers > 0. Such that b >= a, where the number before the colon represents the value of a, the pattern following the colon is that of the number 3 x 7 x a[1] x b[1]

  1 : 2 || 0[592] ||    || b-a[3] ||    || 0[047] || 1
  2 : 2
|| 0[592] || 5  || b-a[6] ||  7 || 0[047] || 1
  3 : 2
|| 0[592] || 58 || b-a[9] || 47 || 0[047] || 1
  4 : 2
|| 1[592] ||    || b-a[3] ||    || 1[047] || 1
  5 : 2
|| 1[592] || 5  || b-a[6] ||  7 || 1[047] || 1
  6 : 2
|| 1[592] || 58 || b-a[9] || 47 || 1[047] || 1
  7 : 2
|| 2[592] ||    || b-a[3] ||    || 2[047] || 1
  8 : 2
|| 2[592] || 5  || b-a[6] ||  7 || 2[047] || 1
  9 : 2
|| 2[592] || 58 || b-a[9] || 47 || 2[047] || 1
...
 20 : 2
|| 7[592] || 5  || b-a[6] ||  7 || 7[047] || 1
 21 : 2
|| 7[592] || 58 || b-a[9] || 47 || 7[047] || 1
 22 : 2
|| 7[592] ||    || b-a[3] ||    || 7[047] || 1
etc.

Therefore, for P and Q, the a and b for N must be 22 and 25 for three 3s and seven 7s resulting in 25925925925925925925923330740740740740740740741.
The remainder of N/37 is 21, i.e., (3 x 7).

Edited on November 3, 2008, 7:33 am
  Posted by Dej Mar on 2008-11-03 07:13:11

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