OFFSET
1,1
COMMENTS
FORMULA
a(n) = denominator(abs(n-8)/(2*n)), n >= 1.
a(n) = 2*n/gcd(n-8, 16).
a(n) = 2*n if n is odd; if n is even then a(n) = n if n/2 == 1, 3, 5, 7 (mod 8), a(n) = n/2 if n/2 == 2, 6 (mod 8), a(n) == n/4 if n/2 == 0 (mod 8) and a(n) = n/8 if n == 4 (mod 8).
O.g.f.: x*(2*(1+x^30) + 2*x*(1+x^28) + 6*x^2*(1+x^26) + 2*x^3*(1+x^24) + 10*x^4*(1+x^22) + 6*x^5*(1+x^20) + 14*x^6*(1+x^18) + x^7*(1+x^16) + 18*x^8*(1+x^14) + 10*x^9*(1+x^12) + 22*x^10*(1+x^10) + 6*x^11*(1+x^8) + 26*x^12*(1+x^6) + 14*x^13*(1+x^4) + 30*x^14*(1+x^2) + 4*x^15)/(1-x^16)^2.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Dec 12 2013
STATUS
approved