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!)
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))
print([k for k in range(460) if ok(k)]) # Michael S. Branicky, Nov 12 2021
CROSSREFS
Cf. A001221 (omega), A010879 (final digit of n).
Sequence in context: A118512 A112651 A215027 * A105945 A139114 A367556
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
a(49) and beyond from Michael S. Branicky, Nov 12 2021
STATUS
approved

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 23 05:20 EDT 2024. Contains 371906 sequences. (Running on oeis4.)