OFFSET
0,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = 3^n - A309476(n) for n > 0.
EXAMPLE
a(1) = ( 2)_3 = 2,
a(2) = ( 2)_3 = 2,
a(3) = (102)_3 = 11,
a(4) = (102)_3 = 11.
PROG
(PARI) {a(n) = if(n, 3^n-truncate(sqrt(-1/2+O(3^n))), 0)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 04 2019
STATUS
approved