OFFSET
1,1
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,1,-1).
FORMULA
A163169(a(n)) = 7. - Ray Chandler, Mar 22 2016
a(n) = 28*A229829(n). - Hugo Pfoertner, Feb 04 2021
G.f.: 28*x*(1 +x +2*x^2 +3*x^3 +x^4 +3*x^5 +2*x^6 +x^7 +x^8) / ((1-x)^2*(1+x)*(1+x^2)*(1+x^4)). - Andrew Howroyd, Oct 31 2025
EXAMPLE
28 = 1 + 2 + 3 + 4 + 5 + 6 + 7;
35 = 2 + 3 + 4 + 5 + 6 + 7 + 8 = 17 + 18 (not in sequence);
56 = 5 + 6 + 7 + 8 + 9 + 10 + 11;
112 = 13 + 14 + 15 + 16 + 17 + 18 + 19.
PROG
(PARI) a(n)=28+((n-1)\8)*420+[364, 0, 28, 84, 168, 196, 280, 336][n%8+1] \\ Charles R Greathouse IV, May 13 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Martin Renner, Mar 14 2016
STATUS
approved
