|
|
A331194
|
|
Numbers whose last digit is the number of their distinct prime factors.
|
|
1
|
|
|
11, 12, 22, 31, 41, 52, 61, 62, 71, 72, 81, 82, 92, 101, 112, 121, 122, 131, 142, 151, 152, 162, 172, 181, 191, 192, 202, 211, 212, 232, 241, 242, 251, 262, 271, 272, 273, 281, 292, 302, 311, 331, 332, 352, 361, 362, 382, 392, 401, 412, 421, 422, 431, 432, 452
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
All prime numbers whose last digit is 1 have this property.
Only numbers with at most 9 distinct prime factors appear in this sequence.
|
|
LINKS
|
|
|
EXAMPLE
|
272 is such a number because 272 = 2^4 * 17. It has 2 distinct prime factors {2,17} and its last digit is 2.
|
|
MATHEMATICA
|
Select[Range@500, Last@IntegerDigits@#==PrimeNu@#&]
Select[Range[500], PrimeNu[#]==NumberDigit[#, 0]&] (* Harvey P. Dale, Aug 12 2021 *)
|
|
PROG
|
(PARI) isok(m) = omega(m) == (m % 10); \\ Michel Marcus, Feb 24 2020
(Python)
from sympy import factorint
def ok(n): return n > 1 and n%10 == len(factorint(n))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|