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!)
A170820 Let p = n-th prime; a(n) = (p-1)/(order of (p+3)/2 mod p). 2

%I #13 Dec 03 2018 15:12:14

%S 2,1,1,3,1,6,2,4,1,1,1,2,2,4,1,5,2,10,2,3,1,1,12,4,1,1,1,1,1,1,1,2,2,

%T 1,1,2,2,2,1,5,2,2,4,3,42,1,1,1,1,2,8,1,1,2,4,1,1,7,2,4,6,2,2,4,30,2,

%U 1,1,1,2,1,3,2,2,2,1,25,4,11,1,10,2,3,1,1,8,10,33,1,2,3,1,6,2,4,1,2,1,2,2,1

%N Let p = n-th prime; a(n) = (p-1)/(order of (p+3)/2 mod p).

%H Alois P. Heinz, <a href="/A170820/b170820.txt">Table of n, a(n) for n = 3..65536</a>

%H I. Anderson and D. A. Preece, <a href="http://dx.doi.org/10.1016/j.disc.2008.09.046">Combinatorially fruitful properties of 3*2^(-1) and 3*2^(-2) modulo p</a>, Discr. Math., 310 (2010), 312-324.

%p with(numtheory); [seq((ithprime(n)-1)/order((ithprime(n)+3)/2,ithprime(n)),n=3..130)];

%t a[n_] := Module[{p=Prime[n]}, (p-1)/MultiplicativeOrder[(p+3)/2, p]]; Array[a, 100, 3] (* _Amiram Eldar_, Dec 03 2018 *)

%o (PARI) a(n) = my(p=prime(n)); (p-1)/znorder(Mod((p+3)/2, p)); \\ _Michel Marcus_, Dec 03 2018

%Y Cf. A014664, A001917, A170821, A170822.

%K nonn

%O 3,1

%A _N. J. A. Sloane_, Dec 24 2009

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 24 06:07 EDT 2024. Contains 371918 sequences. (Running on oeis4.)