OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..75
EXAMPLE
The Padovan number 73396 is in the sequence because also 28 (=7+3+3+9+6) is a Padovan number.
MAPLE
p[0]:=1: p[1]:=1: p[2]:=1: for n from 3 to 170 do p[n]:=p[n-2]+p[n-3] od: P:=[seq(p[n], n=0..170)]: a:=proc(n) local nn, sod: nn:=convert(P[n], base, 10): sod:=add(nn[j], j=1..nops(nn)): if member(sod, P)=true then P[n] else fi end: 0, 1, seq(a(n), n=5..nops(P)); # Emeric Deutsch, Apr 16 2006
MATHEMATICA
Join[{0}, With[{pads=LinearRecurrence[{0, 1, 1}, {1, 1, 1}, 150]}, Union[ Select[ pads, MemberQ[pads, Total[IntegerDigits[#]]]&]]]] (* Harvey P. Dale, Sep 05 2012 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 05 2006
EXTENSIONS
More terms from Emeric Deutsch, Apr 16 2006
STATUS
approved