OFFSET
1,3
FORMULA
From Peter Bala, Sep 11 2022: (Start)
a(n) = n + 1 - A004001(n+1).
a(n) = A080677(n+1) - 1.
a(n+1) - a(n) = 0 or 1. (End)
MAPLE
A087816 := proc(n) option remember; if n <= 2 then 1 else procname(procname(n-1)) + procname(n - 1 - procname(n-1)); fi; end;
seq(A087816(n), n = 1..100); # Peter Bala, Sep 11 2022
MATHEMATICA
hg[n_Integer?Positive] := hg[n] =hg[hg[n-1]] + hg[n -1- hg[n-1]] hg[1] = hg[2] = 1 digits=2^8 a=Table[hg[n], {n, 1, digits}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Oct 05 2003
STATUS
approved