login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A285494 Numbers k such that digit sum of k = number of distinct prime factors of k. 4

%I #24 Apr 24 2017 10:37:41

%S 20,30,102,120,200,300,1002,1200,2000,2001,2002,3000,3010,10001,10002,

%T 10011,10030,10120,11001,11020,11110,12000,20000,20001,21010,30000,

%U 30030,30100,100001,100030,100101,100130,100210,100300,101001,101101,101200,102102,110001,110200

%N Numbers k such that digit sum of k = number of distinct prime factors of k.

%H Giovanni Resta, <a href="/A285494/b285494.txt">Table of n, a(n) for n = 1..10000</a>

%t Select[Range[2,10000],Total[IntegerDigits[#]]==Length[FactorInteger[#]]&] (* or *)

%t nd = 10; s = 1; Sort@ Flatten@ Reap[ While[ Times @@ Prime[ Range@ s] < 10^nd, pa = IntegerPartitions[s, {nd}, Range[0, 9]]; Do[Sow@ Select[ FromDigits /@ Permutations[p], PrimeNu[#] == s &], {p, pa}]; s++]][[2, 1]] (* terms < 10^10, _Giovanni Resta_, Apr 21 2017 *)

%o (PARI) isok(n) = sumdigits(n) == omega(n); \\ _Michel Marcus_, Apr 20 2017

%Y Cf. A001221, A007953, A057531, A057532, A050689, A070274, A070275, A063737, A067077.

%K nonn,base

%O 1,1

%A _Jonathan Frech_, Apr 19 2017

%E More terms from _Michel Marcus_, Apr 20 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)