OFFSET
0,4
COMMENTS
Called Leonardo 3-numbers in the Tan-Leung paper.
LINKS
Elif Tan and Ho-Hon Leung, On Leonardo p-Numbers, Integers (2023) Vol. 23, #A7. See p. 2.
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,1,-1).
MATHEMATICA
LinearRecurrence[{2, -1, 0, 1, -1}, {1, 1, 1, 5, 9}, 44] (* or *)
With[{p = 3}, Nest[Append[#, #[[-1]] + #[[-p - 1]] + p] &, {1, 1, 1, 5}, 40] ]
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Apr 13 2023
STATUS
approved