OFFSET
1,6
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000 (first 200 terms from Robert Price)
FORMULA
EXAMPLE
a(6) = 2 as 6 = 1 + 1 + 4 = 2 + 2 + 2. 1, 2 and 4 are odious as the number of ones in the binary expansion is odd. The partition 1 + 2 + 3 does not count as 3 is not odious; the number of ones in the binary expansion of 3 is 2 (even). - David A. Corneth, Apr 23 2025
MATHEMATICA
Table[Length@Select[DeleteDuplicates[Sort /@ Select[Tuples[Range[n], 3], Total[#] == n &]], A010060[[#[[1]] + 1]]*A010060[[#[[2]] + 1]]* A010060[[#[[3]] + 1]] == 1 &], {n, 200}] (* Robert Price, Apr 22 2025 *)
PROG
(PARI) first(n) = {
res = vector(n);
for(i = 1, n\3,
if(bitand(hammingweight(i), 1),
for(j = i, (n - i)\2,
if(bitand(hammingweight(j), 1),
for(k = j, n - i - j,
res[i+j+k]+=bitand(hammingweight(k), 1)))))); res
} \\ David A. Corneth, Apr 23 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Oct 18 2003
STATUS
approved
