A245070 Smallest positive non-divisor of the n-th Lucas number (A000032).
3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2
Offset: 0
Keywords
Examples
a(6) = 4 because lucas(6) = 18, both 2 and 3 divide 18, but 4 does not.
Links
- Jens Kruse Andersen, Table of n, a(n) for n = 0..1000
Programs
-
PARI
lucas(n) = if(n==0, 2, 2*fibonacci(n-1)+fibonacci(n)); vector(1000, n, m=lucas(n-1); d=2; while(m%d==0, d++); d)
Formula
For n >= 12, a(n) = a(n-12). - Jens Kruse Andersen, Jul 15 2014
Comments