OFFSET
0,1
COMMENTS
FORMULA
a(n) = (b(n)^2 + 2)/3^n, n >= 0, with b(n) = A271222(n).
EXAMPLE
a(0) = (0^2 + 2)/1 = 2.
a(4) = (59^2 + 2)/3^4 = 43.
PROG
(PARI) b(n) = if (n, 3^n - truncate(sqrt(-2+O(3^(n)))), 0);
a(n) = (b(n)^2 + 2)/3^n; \\ Michel Marcus, Apr 09 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Apr 05 2016
STATUS
approved