login
A131854
Numbers m such that A131851(m) = 0.
8
0, 2, 5, 7, 8, 10, 13, 15, 20, 22, 28, 30, 32, 34, 37, 39, 40, 42, 45, 47, 52, 54, 60, 62, 65, 67, 73, 75, 80, 82, 85, 87, 88, 90, 93, 95, 97, 99, 105, 107, 112, 114, 117, 119, 120, 122, 125, 127, 128, 130, 133, 135, 136, 138, 141, 143, 148, 150, 156, 158, 160, 162, 165
OFFSET
1,2
LINKS
MAPLE
Z:= proc(n) option remember;
I*procname(floor(n/2))+(n mod 2)
end proc:
Z(0):= 0:
select(Re@Z=0, [$0..1000]); # Robert Israel, Dec 18 2017
MATHEMATICA
z[0] = 0; z[n_] := z[n] = z[Floor[n/2]]*I + Mod[n, 2]; Select[Range[0, 200], Re[z[#]] == 0&] (* Jean-François Alcover, Jan 31 2018 *)
PROG
(PARI) isok(n) = {d = Vecrev(binary(n)); real(sum(k=1, #d, d[k]*I^(k-1))) == 0; } \\ Michel Marcus, Jan 31 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 22 2007
STATUS
approved