OFFSET
1,2
COMMENTS
All numbers of the form 4^k-2, with k>0, appear in this sequence. - Paul Tek, Sep 24 2013
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..100
FORMULA
Integer solutions to {A000788(x)/x is an integer}.
EXAMPLE
k=14: {1, 10, 11, 10, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110} includes 28 1's so A000788(14)/14 = 2 is an integer, thus 14 is here.
MATHEMATICA
lib[x_] := Count[IntegerDigits[x, 2], 1]; {s=0, ta=Table[0, {100}], tb=Table[0, {100}], u=1}; Do[s=s+lib[n]; w=n; If[IntegerQ[s/n], Print[{n, s/n}]; ta[[u]]=n; tb[[u]]=s/n; u=u+1], {n, 100000}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Labos Elemer, Jun 07 2004
STATUS
approved