OFFSET
1,2
EXAMPLE
371 is in the sequence because (3+7+1) + (3*7*1) = 11 + 21 = 32 = 2^5.
116291 is in the sequence because (1+1+6+2+9+1) + (1*1*6*2*9*1) = 20 + 108 = 128 = 2^7.
MAPLE
A007953 := proc(n) add(d, d=convert(n, base, 10)) ; end proc:
A007954 := proc(n) mul(d, d=convert(n, base, 10)) ; end proc:
isA000079 := proc(n) if n < 1 then false; elif n = 1 then true; else if type(n, 'even') then is( nops(numtheory[factorset](n)) = 1) ; else false; end if; end if; end proc:
isA185400 := proc(n) isA000079(A061762(n)) ; end proc:
for n from 1 to 1300 do if isA185400(n) then printf("%a, ", n) ; end if; end do: # R. J. Mathar, Feb 08 2011
MATHEMATICA
pwrs2Q[n_]:=Module[{idn=IntegerDigits[n], x, y}, x=Total[idn]+Times@@idn; y=Round[Log[x]/Log[2]]; 2^y==x]
Select[Range[1100], pwrs2Q] (* Harvey P. Dale, Feb 16 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Feb 03 2011
STATUS
approved