login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A015942 Positive integers n such that n | (2^n + n/2 - 1). 1
6, 18, 42, 54, 126, 162, 294, 342, 378, 486, 882, 1026, 1134, 1314, 1458, 1806, 2058, 2394, 2646, 3078, 3402, 3942, 4374, 5334, 5418, 6174, 6498, 7182, 7938, 9198, 9234, 10206, 11826, 12642, 13122, 14154, 14406, 16002, 16254, 16758 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..40.

FORMULA

a(n) = 2 * A014945(n). [Max Alekseyev, Aug 04 2011]

PROG

(Python)

A015942_list = [n for n in range(2, 10**6, 2) if pow(2, n, n) == n//2+1] # Chai Wah Wu, Mar 25 2021

CROSSREFS

Cf. A015945.

Sequence in context: A023620 A074837 A286308 * A009945 A270683 A011930

Adjacent sequences:  A015939 A015940 A015941 * A015943 A015944 A015945

KEYWORD

nonn,easy

AUTHOR

Robert G. Wilson v

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 13 09:12 EDT 2021. Contains 342935 sequences. (Running on oeis4.)