login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A178629
Numbers k such that A003418(k-1) = lcm(1,2,...,k-1) is congruent to 1 modulo k.
1
2, 11, 29, 787, 15773
OFFSET
1,1
COMMENTS
Numbers k such that A158851(k-1) = 1.
k must be prime.
No further terms below 3.8*10^8. - Max Alekseyev, Jun 19 2011
EXAMPLE
For the first nontrivial example: lcm(1,2,3,4,5,6,7,8,9,10) = 2520 and 2520 mod 11 = 1, so 11 is in the sequence.
MATHEMATICA
fQ[n_] := Mod[ LCM @@ Range[n - 1], n] == 1; k = 2; lst = {}; While[k < 10^6, If[ fQ@k, Print@k; AppendTo[lst, k]]; k++ ]; lst (* Robert G. Wilson v, Jun 02 2010 *)
Select[Range[2, 16000], Mod[LCM@@(Range[#-1]), #]==1&] (* Harvey P. Dale, Oct 01 2024 *)
PROG
(PARI) { L=1; for(n=2, 10^8, if(ispseudoprimepower(n, &p), if(p==n&&L%n==1, print(n)); L*=p); ); } \\ Max Alekseyev, Oct 04 2024
CROSSREFS
Cf. A158851.
Sequence in context: A285812 A140745 A356567 * A062802 A103830 A162260
KEYWORD
nonn,more
AUTHOR
Nick Hobson, May 31 2010
EXTENSIONS
Offset changed to 1 by Jinyuan Wang, May 02 2020
STATUS
approved