OFFSET
1,1
FORMULA
When 2n + 3 = p is prime, a(n) = p.
EXAMPLE
For k = {1, 2, 3, 4, 5}, ((1 + sqrt(6))^k - (1 - sqrt(6))^k)/(2*sqrt(6)) = {1, 2, 9, 28, 101}. 101 is odd prime, so a(3) = 101.
MATHEMATICA
g[n_, k_] := ((1 + Sqrt[n])^k - (1 - Sqrt[n])^k)/(2Sqrt[n]);
Table[k = 3; While[! PrimeQ[Expand@g[2n, k]], k++]; Expand@g[2n, k], {n, 41}]
CROSSREFS
KEYWORD
nonn
AUTHOR
XU Pingya, Sep 24 2017
STATUS
approved