Processing math: 100%
 
+0  
 
+1
930
3
avatar+368 

There are exactly four integers n such that the equation below is an integer. Find the largest n.

 (n+1)2n+23

 Apr 16, 2019
 #1
avatar
+1

n=1; cycle:a = (n+1)^2 / (n+23);c=if(ceil(a)==floor(a), goto3, goto4);printn,"=",a; n++; if(n<1000, goto cycle, discard=0;
The four numbers are:
n =21, 98, 219, 461

 Apr 16, 2019
 #2
avatar+368 
+1

Nice program and thanks!

Badada  Apr 16, 2019
 #3
avatar+26397 
+2

There are exactly four integers n such that the equation below is an integer.

Find the largest n.

(n+1)2n+23

 

(n+1)2n+23=n2+2n+1n+23n2+2n+1 : n+23=n21+484n+23Polynomial long division484=0(modn+23)|484n+23 must be an integer 4840=m(n+23), mZ484=mn+23mmn=48423mn=48423mmn=484m23|n is max, when m=1!nmax=48423nmax=461

 

laugh

 Apr 18, 2019

1 Online Users

avatar