How Many Integers Make This Square Free?

Let S S be the sum of all positive integers N N for which the number N N 1 1 N^{N-1}-1 isn't divisible by any perfect squares apart from 1. 1. Find S + 1. S+1.


The answer is 3.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

Jubayer Nirjhor
Jun 4, 2014

Shift N N + 1 N\to N+1 to get ( N + 1 ) N 1 (N+1)^N-1 . Now we have for all N 1 N\geq 1 ( N + 1 ) N 1 = k = 0 N ( N k ) N k 1 = k = 1 N ( N k ) N k ( N 1 ) N = N 2 0 ( m o d N 2 ) (N+1)^N-1=\sum_{k=0}^N \dbinom{N}{k} N^k-1=\sum_{k=1}^{N}\dbinom{N}{k} N^k\equiv \dbinom{N}{1} N=N^2\equiv 0\pmod{N^2} Note that N = 1 N=1 is a valid case since divisibility by 1 2 1^2 is allowed. This gives N = 2 N=2 a solution. N = 0 N=0 gives ( N + 1 ) N 1 = 0 (N+1)^N-1=0 which is divisible by every single perfect square in the world so the answer should be 2 2 . When it didn't work I considered 1 1 as a solution and put 3 3 , it worked.

Bogdan Simeonov
Jun 4, 2014

Sketch:For all N it is divisible by ( N 1 ) 2 (N-1)^2 (use N 1 ( m o d N 1 ) N\equiv1\pmod{N-1} )That leaves 1 and 2.

Alternatively, for any prime p p dividing N 1 , N-1, v p ( N N 1 1 ) = v p ( N 1 ) + v p ( N 1 ) 2 v_p (N^{N-1}-1) = v_p (N-1) + v_p (N-1) \geq 2 by LTE.

Nice solution! But for N = 1 N = 1 , N N 1 1 = 0 N^{N - 1} - 1 = 0 , which is divisible by any positive integer. So the answer is 2.

Jon Haussmann - 7 years ago

Log in to reply

Yes, I noticed that and think the answer should be changed.

Bogdan Simeonov - 7 years ago

Yes, I noticed my mistake and have edited the question accordingly.

Note that for all N > 0 the expression is divisible by ( N 1 ) 2 (N-1)^2 .

Jubayer Nirjhor - 7 years ago
Mark Kong
Jun 11, 2014

Write the number in base N N . Factor N N 1 1 N^{N-1}-1 into ( N 1 ) ( N N 2 + N N 3 + + 1 ) (N-1)(N^{N-2}+N^{N-3}+\dots+1) . Clearly, N 1 N 1 N-1|N-1 .

If the sum of the digits of a number in base k k is divisible by k 1 k-1 , it is divisible by k 1 k-1 . In base N N , N N 2 + N N 3 + + 1 N^{N-2}+N^{N-3}+\dots+1 consists of N 1 N-1 1s, which sums to N 1 N-1 . Therefore, all numbers of this form have 2 factors of N 1 N-1 . Therefore N 1 = 1 N-1=1 , so N = 2 N=2 . Thus, S = 2 + 1 = 3 S=2+1=\boxed{3} .

Shashvat Shukla
Jun 7, 2014

May I ask the motivation of asking for S+1 and not S?

When I published this problem, I entered an incorrect answer ( 2 2 ). Now may I ask the "motivation" for posting this as a solution instead of a comment?

Log in to reply

Sorry, that was a mistake

Shashvat Shukla - 7 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...