OFFSET
0,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
a(9) = 57 + 31 + R(17) = 57 + 31 + 71 = 159.
MAPLE
R:=proc(n) local nn, nnn: nn:=convert(n, base, 10): add(nn[nops(nn)+1-j]*10^(j-1), j=1..nops(nn)) end: a[0]:=1: a[1]:=1: a[2]:=1: for n from 3 to 34 do a[n]:=a[n-1]+a[n-2]+R(a[n-3]) od: seq(a[n], n=0..34); # Emeric Deutsch, Jul 25 2005
MATHEMATICA
RecurrenceTable[{a[0]==a[1]==a[2]==1, a[n]==a[n-1]+a[n-2]+IntegerReverse[ a[n-3]]}, a, {n, 40}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 05 2020 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Felice Russo, Sep 11 2002
EXTENSIONS
More terms from Emeric Deutsch, Jul 25 2005
STATUS
approved