OFFSET
1,4
COMMENTS
Considering 1^m = 1, when p = 1, we always use m = 1.
The third zero is a(1622629) = 0.
The distribution of the items of this sequence is a bell curve with the mode of 10, which does not likely to grow with n.
LINKS
Lei Zhou, Table of n, a(n) for n = 1..10000
EXAMPLE
MAPLE
with(numtheory):
a:= n-> add(`if`((f-> not 2 in f and 0<nops(f) and nops(f)<3)
(factorset(2*n-1-2^k)), 1, 0), k=1..ilog2(2*n-1)):
seq(a(n), n=1..100); # Alois P. Heinz, Feb 06 2014
MATHEMATICA
Table[ct = 0; m = 1; While[m = m*2; m < n, If[fi = FactorInteger[n - m]; (fi[[1, 1]] >= 3) && (Length[fi] <= 2), ct++]]; ct, {n, 5, 177, 2}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lei Zhou, Feb 05 2014
STATUS
approved