OFFSET
1,2
EXAMPLE
a(2) = 2 = 10_2 and a(2)' = 2' = 1 = 1_2 have a single 1 in their binary expansion, a(1) + a(2) = 0 + 2 = 10_2 and (a(1) + a(2))' = (0 + 2)' = 2' = 1 = 1_2 have a single 1 in their binary expansion.
a(3) = 4 = 100_2, a(3)' = 4' = 4 = 100_2 have a single 1 in their binary expansion, and a(2) + a(3) = 2 + 4 = 6 = 110_2 and (a(2) + a(3))' = (2 + 4)' = 6' = 5 = 101_2, have two 1's in their binary expansion.
MATHEMATICA
d[0] = d[1] = 0; d[n_] := n*Plus @@ ((Last[#]/First[#]) & /@ FactorInteger[n]); v = Select[Range[0, 600], Equal @@ DigitCount[{#, d[#]}, 2, 1] &]; s = {}; found = True; i = {1}; While[i != {}, AppendTo[s, v[[i[[1]]]]]; i = FirstPosition[v, _?(! MemberQ[s, #] && MemberQ[v, s[[-1]] + #] &)]]; s (* Amiram Eldar, Jan 27 2022 *)
PROG
(Magma) f:=func<n |n le 1 select 0 else n*(&+[Factorisation(n)[i][2] / Factorisation(n)[i][1]: i in [1..#Factorisation(n)]])>; ham:=func<a, b|Multiplicity(Intseq(a, 2), 1) eq Multiplicity(Intseq(b, 2), 1)>; a:=[0]; for n in [2..57] do k:=1; while k in a or not ham(k, Floor(f(k))) or not ham(k+a[n-1], Floor(f(k+a[n-1]))) do k:=k+1; end while; Append(~a, k); end for; a;
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Marius A. Burtea, Jan 24 2022
STATUS
approved