login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
LINKS
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 *)
PROG
(PARI) { L=1; for(n=2, 10^8, if( ispseudoprime(n), if(L%n==1, print(n)); L*=n); if( ispower(n, , &p) && ispseudoprime(p), L*=p ); ) } \\ Max Alekseyev, Jun 19 2011
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)