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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A331821 Positive numbers k such that -k and -(k + 1) are both negabinary-Niven numbers (A331728). 2
 2, 3, 8, 9, 15, 24, 27, 32, 33, 39, 54, 55, 63, 77, 111, 114, 115, 123, 128, 129, 135, 144, 159, 174, 175, 203, 234, 235, 245, 255, 264, 294, 295, 329, 370, 371, 384, 413, 414, 415, 444, 447, 474, 475, 495, 504, 507, 512, 513, 519, 534, 535, 543, 580, 581, 624 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS Amiram Eldar, Table of n, a(n) for n = 1..10000 EXAMPLE 8 is a term since both -8 and -(8 + 1) = -9 are negabinary-Niven numbers: A039724(-8) = 1000 and 1 + 0 + 0 + 0 = 1 is a divisor of 8, and A039724(-9) = 1011 and 1 + 0 + 1 + 1 = 3 is a divisor of 9. MATHEMATICA negaBinWt[n_] := negaBinWt[n] = If[n == 0, 0, negaBinWt[Quotient[n - 1, -2]] + Mod[n, 2]]; negaBinNivenQ[n_] := Divisible[n, negaBinWt[-n]]; c = 0; k = 1; s = {}; v = Table[-1, {2}]; While[c < 60, If[negaBinNivenQ[k], v = Join[Rest[v], {k}]; If[AllTrue[Differences[v], # == 1 &], c++; AppendTo[s, k - 1]]]; k++]; s CROSSREFS Cf. A005352, A027615, A039724, A328209, A328213, A330927, A330931, A331086, A331089, A331728, A331819, A331820. Sequence in context: A137471 A051209 A332481 * A093765 A260020 A104577 Adjacent sequences:  A331818 A331819 A331820 * A331822 A331823 A331824 KEYWORD nonn,base AUTHOR Amiram Eldar, Jan 27 2020 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.

Last modified January 25 18:32 EST 2022. Contains 350572 sequences. (Running on oeis4.)