login
A393069
Numbers whose prime divisors all start with the same digit.
0
1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31, 32, 37, 41, 43, 46, 47, 49, 53, 58, 59, 61, 64, 67, 71, 73, 79, 81, 83, 89, 92, 93, 97, 101, 103, 107, 109, 111, 113, 116, 121, 125, 127, 128, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173
OFFSET
1,2
COMMENTS
All powers of primes are terms.
1 is included, since it has no prime divisors.
EXAMPLE
46 is a term because 46 = 2*23, and the prime divisors 2 and 23 both begin with digit 2.
MATHEMATICA
ok[n_] := Length[Union[IntegerDigits[#][[1]] & /@ FactorInteger[n][[All, 1]]]] <= 1
Select[Range[200], ok]
PROG
(PARI) isok(k) = if(k==1, 1, my(f=factor(k)); #Set(vector(#f~, i, digits(f[i, 1])[1])) == 1); \\ Michel Marcus, May 01 2026
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bartlomiej Pawlik, Apr 30 2026
STATUS
approved