OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
45 is in A087441 because its prime divisors are 3 and 5 and 3-1 = 2 as well as 5-1 = 4 divide 45-1 = 44.
MATHEMATICA
Join[{1}, Select[Range[2, 300], And@@Divisible[#-1, FactorInteger[#][[All, 1]]-1]&]] (* Harvey P. Dale, Aug 07 2019 *)
PROG
(GAP) for i in [1..225] do if i = 1 or IsSubset (DivisorsInt(i-1), Set (FactorsInt (i)) - 1) then Print (i, ", "); fi; od;
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jens Voß, Sep 04 2003
STATUS
approved