wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> easy >> Prime Time
(Message started by: THUDandBLUNDER on Nov 29th, 2003, 4:17am)

Title: Prime Time
Post by THUDandBLUNDER on Nov 29th, 2003, 4:17am
For which positive integer values of n is n4 + 4n prime?

Title: Re: Prime Time
Post by TenaliRaman on Nov 29th, 2003, 6:38am
(not a complete solution)
::[hide]
obviously n cannot be even bcos for n even , the given expression is definitely composite.

so we have to look at odds.
note that for n odd, 4n has last digit as 4

now for n's ending with 1,3,7,9 the n4 ends with a 1, so the sum n4+4n has last digit as 5.

The only part i cannot figure out so far is for n's ending with 5. But a few calculated values seem to show that for n's ending with 5, the expression is still composite.

so most prolly the only solution is n=1.
[/hide]::

Title: Re: Prime Time
Post by rmsgrey on Nov 29th, 2003, 7:12am
::[hide]
n4+4n=(n2+2n)2-n22n+1

For n odd, n22n+1 is square, so n4+4n is the difference of two squares, so composite, provided n2+2n>n*2(n+1)/2+1
which is certainly true for
2(n-1)/2>n
or n>6

As TenaliRaman pointed out, even n give composite results, so we only need to inspect n=1,3 or 5 giving 5, 145 and 1649(=17*97) respectively.
[/hide]::

Title: Re: Prime Time
Post by TenaliRaman on Nov 29th, 2003, 7:39am
pretty neat solution rmsgrey !!



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board