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!)
A178462 Numbers k such that prime(k) mod k > k/2. 1

%I #20 Sep 08 2022 08:45:54

%S 3,4,9,10,11,19,20,22,23,24,25,26,27,28,29,30,48,49,50,51,52,53,54,55,

%T 56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,72,116,122,123,124,125,

%U 126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142

%N Numbers k such that prime(k) mod k > k/2.

%C The sequence consists largely of long runs of consecutive integers. However, there are also a few isolated integers such that the distance to both neighbor terms is greater than 1: 116, 4136, 4138, 4141, 4143, 4151, 6458, 63423, 100363.

%e 3 is a term because prime(3) mod 3 = 5 mod 3 = 2 > 3/2;

%e 4 is a term because prime(4) mod 4 = 7 mod 4 = 3 > 4/2;

%e 9 is a term because prime(9) mod 9 = 23 mod 9 = 5 > 9/2.

%t Select[Range[150],Mod[Prime[#],#]>#/2&] (* _Harvey P. Dale_, Jan 18 2011 *)

%o (PARI) for(n=1,200,prime(n)%n>n/2&print1(n,","))

%o (Magma) [ n: n in [1..150] | NthPrime(n) mod n gt n/2 ];

%Y Cf. companion sequence A178502.

%K nonn

%O 1,1

%A _Zak Seidov_, Dec 24 2010

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 May 11 13:00 EDT 2024. Contains 372409 sequences. (Running on oeis4.)