There are exactly four integers n such that the equation below is an integer. Find the largest n.
(n+1)2n+23
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
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=n−21+484n+23Polynomial long division484=0(modn+23)|484n+23 must be an integer 484−0=m⋅(n+23), m∈Z484=m⋅n+23mm⋅n=484−23mn=484−23mmn=484m−23|n is max, when m=1!nmax=484−23nmax=461