This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A185400 #22 Dec 09 2024 23:22:36 %S A185400 1,2,4,8,10,20,22,40,80,100,101,103,107,110,111,113,117,130,131,133, %T A185400 137,170,171,173,177,200,202,206,220,260,301,305,310,311,313,317,331, %U A185400 350,371,400,404,440,503,530,602,620,701,709,710,711,713,717,731,771,790,800,808,880,907,970,1000,1001,1003,1007,1010,1012,1016 %N A185400 Numbers with property that the digital sum plus the product of the digits is a power of 2. %H A185400 Robert Israel, <a href="/A185400/b185400.txt">Table of n, a(n) for n = 1..10000</a> %e A185400 371 is in the sequence because (3+7+1) + (3*7*1) = 11 + 21 = 32 = 2^5. %e A185400 116291 is in the sequence because (1+1+6+2+9+1) + (1*1*6*2*9*1) = 20 + 108 = 128 = 2^7. %p A185400 A007953 := proc(n) add(d,d=convert(n,base,10)) ; end proc: %p A185400 A007954 := proc(n) mul(d,d=convert(n,base,10)) ; end proc: %p A185400 A061762 := proc(n) A007953(n)+A007954(n) ; end proc: %p A185400 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: %p A185400 isA185400 := proc(n) isA000079(A061762(n)) ; end proc: %p A185400 for n from 1 to 1300 do if isA185400(n) then printf("%a,",n) ; end if; end do: # _R. J. Mathar_, Feb 08 2011 %t A185400 pwrs2Q[n_]:=Module[{idn=IntegerDigits[n],x,y},x=Total[idn]+Times@@idn;y=Round[Log[x]/Log[2]];2^y==x] %t A185400 Select[Range[1100],pwrs2Q] (* _Harvey P. Dale_, Feb 16 2011 *) %Y A185400 Cf. A061762. %K A185400 nonn,base %O A185400 1,2 %A A185400 _Michel Lagneau_, Feb 03 2011