OFFSET
1,2
COMMENTS
Corresponding square roots are listed in A351353.
3 and 7 are the unique primes in this sequence, a(2*n+1) and a(2*n) always sharing common factors that are closely linked to Fibonacci (A000045) and Lucas (A000032) numbers (detailed in formula section).
In addition, the ratio a(2*n+1)/a(2*n) converges to 2.618033988 ... = golden ratio squared: A104457.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,18,-18,-1,1).
FORMULA
a(n) = A077259(n-1) + 1.
a(1)=1, a(2)=3, a(3)=7, a(4)=45, a(5)=117 and a(n) = a(n-1) + 18*a(n-2) - 18*a(n-3) - a(n-4) + a(n-5).
EXAMPLE
MAPLE
a[1] := 1: a[2] := 3: a[3] := 7: a[4] := 45: a[5] := 117:
for n from 6 to 30 do a[n] := a[n - 1] + 18*a[n - 2] - 18*a[n - 3] - a[n - 4] + a[n - 5]: od:
seq(a[n], n = 1 .. 30);
MATHEMATICA
LinearRecurrence[{1, 18, -18, -1, 1}, {1, 3, 7, 45, 117}, 30] (* Amiram Eldar, Feb 08 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Lamine Ngom, Feb 08 2022
STATUS
approved