cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A344342 Numbers k such that k and k + 1 are both Gray-code Niven numbers (A344341).

This page as a plain text file.
%I A344342 #7 May 16 2021 02:41:20
%S A344342 1,2,3,6,7,8,14,15,27,30,31,32,39,44,51,56,62,63,75,99,104,111,123,
%T A344342 126,127,128,135,144,155,159,174,175,184,185,195,204,207,215,224,231,
%U A344342 234,235,243,244,248,254,255,264,275,284,294,300,304,305,315,335,354,375
%N A344342 Numbers k such that k and k + 1 are both Gray-code Niven numbers (A344341).
%H A344342 Amiram Eldar, <a href="/A344342/b344342.txt">Table of n, a(n) for n = 1..10000</a>
%e A344342 1 is a term since 1 and 2 are both Gray-code Niven numbers.
%t A344342 gcNivenQ[n_] := Divisible[n, DigitCount[BitXor[n, Floor[n/2]], 2, 1]]; Select[Range[400], And @@ gcNivenQ[# + {0, 1}] &]
%Y A344342 Cf. A005811, A014550.
%Y A344342 Subsequence of: A344341.
%Y A344342 Subsequences: A344343 and A344344.
%Y A344342 Similar sequences: A330927 (decimal), A328205 (factorial), A328209 (Zeckendorf), A328213 (lazy Fibonacci), A330931 (binary), A331086 (negaFibonacci), A333427 (primorial), A334309 (base phi), A331820 (negabinary), A342427 (base 3/2).
%K A344342 nonn,base
%O A344342 1,2
%A A344342 _Amiram Eldar_, May 15 2021