OFFSET
1,1
COMMENTS
Also called the one-sided numbers.
They can end only in either 1, 3, 7 or 9.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
VOS 2025 Math Region stage, Problem 10.9 (in Russian).
EXAMPLE
39 = 3*13.
MAPLE
q:= n-> (l-> nops(l)>1 and nops({map(i-> irem(i[1], 10), l)[]})=1)(ifactors(n)[2]):
select(q, [$1..2000])[]; # Alois P. Heinz, Feb 18 2025
MATHEMATICA
Sort[Times@@@Cases[Subsets[Prime[Range[100]], {2}], _?(Mod[#[[1]]-#[[2]], 10]==0&)]][[;; 100]] (* Shenghui Yang, Feb 18 2025 *)
PROG
(PARI) isok(k) = my(f=factor(k)); (#f~ != 1) && (#Set(vector(#f~, i, f[i, 1] % 10)) == 1); \\ Michel Marcus, Feb 18 2025
(Python)
from sympy import factorint
def ok(n): return len(f:=factorint(n)) > 1 and len(set(p%10 for p in f)) == 1
print([k for k in range(1, 1060) if ok(k)]) # Michael S. Branicky, Feb 18 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Yaroslav Deryavko, Feb 01 2025
STATUS
approved
