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

Home > Numbers
Four equal digits (Posted on 2021-07-20) Difficulty: 3 of 5
Find all possible integer values of n such that 12n2 + 12n + 11 is a 4-digit number with equal digits.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution analytic solution | Comment 2 of 5 |
I also did a computer solution, but first I did this analytic solution:

There are only 9 possibilities:  1111, ..., 9999.
If you add 1 to the polynomial, the result must be divisible by 12.
Such a number must be 1112, 2223, ..., 8889, 10000
To be divisible by 12, it must be divisible by both 3 and 4.
For the sum of digits to be 0 mod 3, the 4th digit of the incremented number must be 0 mod 3.
Candidates so far:  2223, 5556, 8889.
But only 5556 is also divisible by 4.
So, 12n^2 + 12n + 11 = 5555
12n^2 + 12n - 5544 = 0.
A quick check shows that n=21 works, but our friend the quadratic formula gives both solutions:

Solution:  n can be either 21 or -22
-----   -----   -----   -----   -----   -----   
here is my Python code:
for n in range (-100,100):
    for digit in range (1,10):
        if 12*(n**2) + 12*n + 11 == 1111 * digit:
            print(n,1111 * digit)

printout:  
-22 5555
21 5555

  Posted by Larry on 2021-07-21 06:56:20
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 (15)
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