OFFSET
1,2
COMMENTS
Given two initial terms, sum the terms and reverse the digits of the sum. Then repeat.
Related to A014258, the Iccanobif numbers, but with initial terms 1 and 11 rather than 0 and 1.
MATHEMATICA
Clear[ BiF ]; BiF[ 0 ]=1; BiF[ 1 ]=11; BiF[ n_Integer ] := BiF[ n ]=Plus@@(IntegerDigits[ BiF[ n-2 ]+BiF[ n-1 ], 10 ]//(#*Array[ 10^#&, Length[ # ], 0 ])&); Array[ BiF, 40, 0 ]
nxt[{a_, b_}]:={b, FromDigits[Reverse[IntegerDigits[a+b]]]}; Transpose[ NestList[ nxt, {0, 1}, 40]][[1]]
PROG
(Python)
terms = [1, 11]
for i in range(100):
terms.append(int(str(terms[-1]+terms[-2])[::-1]))
print(terms) # Gleb Ivanov, Jan 14 2022
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Tim Ricchuiti, Jan 14 2022
STATUS
approved