After initial 1,2,4, a(n+1) is the smallest divisor of a(n)^2-1 that has not yet appeared in the sequence.
A166133
After initial 1,2,4, a(n+1) is the smallest divisor of a(n)^2-1 that has not yet appeared in the sequence.
Terms
- a(0) =1a(1) =2a(2) =4a(3) =3a(4) =8a(5) =7a(6) =6a(7) =5a(8) =12a(9) =11a(10) =10a(11) =9a(12) =16a(13) =15a(14) =14a(15) =13a(16) =21a(17) =20a(18) =19a(19) =18a(20) =17a(21) =24a(22) =23a(23) =22a(24) =69a(25) =28a(26) =27a(27) =26a(28) =25a(29) =39
External references
- oeis: A166133