A344342 Numbers k such that k and k + 1 are both Gray-code Niven numbers (A344341).
1, 2, 3, 6, 7, 8, 14, 15, 27, 30, 31, 32, 39, 44, 51, 56, 62, 63, 75, 99, 104, 111, 123, 126, 127, 128, 135, 144, 155, 159, 174, 175, 184, 185, 195, 204, 207, 215, 224, 231, 234, 235, 243, 244, 248, 254, 255, 264, 275, 284, 294, 300, 304, 305, 315, 335, 354, 375
Offset: 1
Examples
1 is a term since 1 and 2 are both Gray-code Niven numbers.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Crossrefs
Subsequence of: A344341.
Programs
-
Mathematica
gcNivenQ[n_] := Divisible[n, DigitCount[BitXor[n, Floor[n/2]], 2, 1]]; Select[Range[400], And @@ gcNivenQ[# + {0, 1}] &]
Comments