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!)
A331820 Positive numbers k such that k and k + 1 are both negabinary-Niven numbers (A331728). 16

%I #8 Jan 28 2020 03:57:12

%S 1,2,3,8,14,15,20,32,35,56,62,63,68,80,90,95,124,125,128,174,184,185,

%T 215,224,244,245,248,254,255,260,272,275,300,304,305,320,335,342,468,

%U 469,484,485,512,515,544,545,552,575,594,636,720,762,784,785,804,846,896

%N Positive numbers k such that k and k + 1 are both negabinary-Niven numbers (A331728).

%H Amiram Eldar, <a href="/A331820/b331820.txt">Table of n, a(n) for n = 1..10000</a>

%e 8 is a term since both 8 and 8 + 1 = 9 are negabinary-Niven numbers: A039724(8) = 11000 and 1 + 1 + 0 + 0 + 0 = 2 is a divisor of 8, and A039724(9) = 11001 and 1 + 1 + 0 + 0 + 1 = 3 is a divisor of 9.

%t 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

%Y Cf. A027615, A039724, A328209, A328213, A330927, A330931, A331086, A331089, A331728.

%K nonn,base

%O 1,2

%A _Amiram Eldar_, Jan 27 2020

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 20 06:33 EDT 2024. Contains 371799 sequences. (Running on oeis4.)