OFFSET
1,2
COMMENTS
Also numbers with all divisors ending with digit 1.
Also numbers with all divisors ending with the same digit; as 1 divides all the integers, this digit is necessarily 1 (see first comment); hence, for these numbers m: A330348(m) = A000005(m). - Bernard Schott, Nov 09 2020
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
ok[1]=True; ok[n_]:=And@@(Mod[#, 5]==1&)/@FactorInteger[n][[All, 1]]; Select[Range[2000], ok] (* Vincenzo Librandi, Aug 21 2012 *)
Select[Range[1000], Union[Mod[#, 5]&/@FactorInteger[#][[All, 1]]]=={1}&] (* Harvey P. Dale, Apr 19 2019 *)
PROG
(Haskell)
a004615 n = a004615_list !! (n-1)
a004615_list = filter (all (== 1) . (map (`mod` 5) . a027748_row)) [1..]
-- Reinhard Zumkeller, Apr 16 2012
(Magma) [n: n in [1..1500] | forall{d: d in PrimeDivisors(n) | d mod 5 eq 1}]; // Vincenzo Librandi, Aug 21 2012
(PARI) is(n)=#select(p->p%5!=1, factor(n)[, 1])==0 \\ Charles R Greathouse IV, Mar 11 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
A206291 merged in by Franklin T. Adams-Watters, Sep 21 2012
STATUS
approved