OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = (5/128)*n^4*(n mod 2) + (((-5/128)*n^4*(n mod 2) - 26) mod n) + n^3 (n > 0).
MATHEMATICA
Map[ Mod[-5/128*#^4*Mod[#, 2] - 26, #] + 5/128*#^4*Mod[#, 2] + #^3 &, Range[10^5]]
PROG
(PARI)
rmod(n, m)={n-n\m*m}
a(n)={(5/128)*n^4*(n % 2) + rmod(((-5/128)*n^4*(n % 2) - 26), n) + n^3} \\ Andrew Howroyd, Feb 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Mikk Heidemaa, Oct 26 2017
STATUS
approved