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

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 1 05:02 EST 2022. Contains 358454 sequences. (Running on oeis4.)