A085152 All prime factors of n and n+1 are <= 5. (Related to the abc conjecture.)
1, 2, 3, 4, 5, 8, 9, 15, 24, 80
Offset: 1
Programs
-
Mathematica
Select[Range[10000], FactorInteger[ # (# + 1)][[ -1,1]] <= 5 &] (* T. D. Noe, Mar 03 2008 *)
-
PARI
for(n=1,99,vecmax(factor(n++)[,1])<6 && vecmax(factor(n--+(n<2))[,1])<6 && print1(n", ")) \\ This skips 2 if n+1 is not 5-smooth: twice as fast as the naive version. - M. F. Hasler, Jan 16 2015
Extensions
Edited by Dean Hickerson, Jun 30 2003
Comments