OFFSET
1,2
COMMENTS
The first digit of Pi, "3", is reckoned as position 1.
This pattern happens from the first digit of Pi, so it seems to be pretty basic.
FORMULA
EXAMPLE
1 is the first term, since the first two digits 3 and 1 add up to 4.
3 is the second term, since 4 + 1 = 5.
10 is next, since 3 + 5 = 8.
PROG
(MATLAB)
p=char(vpa(pi, 1000)); p(2)='3';
for i=2:strlength(p)-2
if str2num(p(i))+str2num(p(i+1))==str2num(p(i+2)) fprintf('%i, ', i-1) end
end
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Aaron T Cowan, Mar 22 2023
STATUS
approved