OFFSET
0,3
COMMENTS
Sequence consists of runs of five consecutive integers: 0..4, 1..5, 2..6, 3..7, etc.
LINKS
MATHEMATICA
Array[Total@ QuotientRemainder[#, 5] &, 77, 0] (* Michael De Vlieger, Nov 03 2022 *)
PROG
(PARI) a(n) = n\5 + n%5 \\ Thomas Scheuerle, Oct 24 2022
(PARI) a(n) = vecsum(divrem(n, 5)); \\ Michel Marcus, Nov 03 2022
(Python) def a(n): return n//5 + n%5 # Michael S. Branicky, Nov 03 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sandra Snan, Oct 24 2022
STATUS
approved