A217277 Numbers n such that n^2-9 is divisible by consecutive primes beginning with 2.
5, 9, 15, 21, 27, 33, 51, 57, 87, 93, 123, 147, 213, 297, 333, 483, 753, 1053, 1347, 2307, 2643, 3237, 4287, 6003, 10293, 12477, 14403, 18147, 26247, 58803, 74253, 739203, 1166883, 3801333
Offset: 1
Keywords
Examples
5^2 - 9 = 2^4; 9^2 -9 = 2^3*3^2; 27^2 -9 = 2^4*3^2*5 = 6!; 87^2 - 9 = 2^3*3^3*5*7; 333^2 - 9 = 2^5*3^2*5*7*11.
Programs
-
PARI
is(n)=my(m=n^2-9,t);forprime(p=2,,t=valuation(m,p);if(t,m/=p^t,return(m==1))) print1(5);forstep(n=9,1e6,6,if(is(n),print1(", "n))) \\ Charles R Greathouse IV, Oct 01 2012
-
PARI
is(n)=my(f=factor(n^2-9)[,1]~);f==primes(#f) \\ Charles R Greathouse IV, Oct 01 2012
Comments