|
|
A294894
|
|
Number of divisors d of n such that either d=1 or Stern polynomial B(d,x) is reducible.
|
|
6
|
|
|
1, 1, 1, 2, 1, 2, 1, 3, 2, 2, 1, 4, 1, 2, 2, 4, 1, 4, 1, 4, 2, 2, 1, 6, 1, 2, 3, 4, 1, 5, 1, 5, 2, 2, 2, 7, 1, 2, 2, 6, 1, 5, 1, 4, 4, 2, 1, 8, 2, 3, 2, 4, 1, 6, 1, 6, 2, 2, 1, 9, 1, 2, 4, 6, 1, 5, 1, 4, 2, 5, 1, 10, 1, 2, 3, 4, 1, 5, 1, 8, 4, 2, 1, 9, 2, 2, 2, 6, 1, 9, 1, 4, 2, 2, 1, 10, 1, 4, 4, 6, 1, 5, 1, 6, 5
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
For n=25, with divisors [1, 5, 25], both B(5,x) and B(25,x) are irreducible, so only 1 is counted and a(25)=1.
|
|
PROG
|
(PARI)
ps(n) = if(n<2, n, if(n%2, ps(n\2)+ps(n\2+1), 'x*ps(n\2)));
A283991(n) = polisirreducible(ps(n));
|
|
CROSSREFS
|
Differs from A033273 for the first time at n=25.
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|