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!)
A023149 Numbers k such that prime(k) == 7 (mod k). 13

%I #27 Feb 11 2021 22:54:13

%S 1,2,4,6,18,36,78,191,6456,6457,40080,40081,637324,637326,637344,

%T 10553425,10553434,10553477,10553502,10553573,10553854,27066988,

%U 27067126,69709680,69709736,69709940,465769818,3140421716,3140421740,3140421743

%N Numbers k such that prime(k) == 7 (mod k).

%H Giovanni Resta, <a href="/A023149/b023149.txt">Table of n, a(n) for n = 1..71</a>

%t p = 1; Do[ If[ Mod[p = NextPrime[p], n] == 7, Print[n]], {n, 1, 10^9}] (* _Robert G. Wilson v_, Feb 18 2004 *)

%o (Sage)

%o def A023149(max) :

%o terms = []

%o p = 2

%o for n in range(1, max+1) :

%o if (p - 7) % n == 0 : terms.append(n)

%o p = next_prime(p)

%o return terms

%o # _Eric M. Schmidt_, Feb 05 2013

%Y Cf. A171434, A092049, A023143, A023144, A023145, A023146, A023147, A023148, A023150, A023151, A023152.

%K nonn

%O 1,2

%A _David W. Wilson_

%E More terms from _Robert G. Wilson v_, Feb 18 2004

%E a(27)-a(31) from _Robert G. Wilson v_, Feb 22 2006

%E First four terms inserted by _Eric M. Schmidt_, Feb 05 2013

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 10:51 EDT 2024. Contains 371967 sequences. (Running on oeis4.)