OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
15 is included because 2|14, 105 is included because 4|104.
MATHEMATICA
Select[Range@ 600, Function[n, And[SquareFreeQ@ n, OddQ@ n, CompositeQ@ n, AnyTrue[FactorInteger[n][[All, 1]], Divisible[n - 1, # - 1] &]]]] (* Michael De Vlieger, Feb 25 2018 *)
PROG
(PARI) list(lim)=my(v=List()); forsquarefree(n=3, lim\1, if(n[2][1, 1]==2 || #n[2][, 2]==1, next); for(i=1, #n[2][, 2], if((n[1]-1)%(n[2][i, 1]-1)==0, listput(v, n[1]); break))); Vec(v) \\ Charles R Greathouse IV, Feb 25 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Feb 25 2018
STATUS
approved