OFFSET
1,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..85085
EXAMPLE
B(11,t) = t^2 + 3t + 1 which is irreducible, so a(11) = 1.
B(12,t) = t^3 + t^2 = t^2(t+1), so a(12) = 3.
PROG
(PARI)
A277013 = n -> vecsum(factor(ps(n))[, 2]);
ps(n) = if(n<2, n, if(n%2, ps(n\2)+ps(n\2+1), 'x*ps(n\2))); \\ From Charles R Greathouse IV code in A186891.
for(n=1, 85085, write("b277013.txt", n, " ", A277013(n)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 07 2016
STATUS
approved