OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
Robert Baillie, Summing the curious series of Kempner and Irwin, arXiv:0806.4410 [math.CA], 2008-2015. See p. 18 for Mathematica code irwinSums.m.
M. I. Mazurkov and A. V. Sokolov, Nonlinear substitution S-boxes based on composite power residue codes, Radioelectronics and Communications Systems, Vol. 56, No. 9 (2013). DOI: 10.3103/S0735272713090045.
FORMULA
a(n+1) = A057168(a(n)). - M. F. Hasler, Aug 27 2014
Sum_{n>=1} 1/a(n) = 1.386779022721502147026318489565477811900220906277367947393004721391094590038... (calculated using Baillie's irwinSums.m, see Links). - Amiram Eldar, Feb 14 2022
MATHEMATICA
Select[ Range[ 127, 704 ], (Count[ IntegerDigits[ #, 2 ], 1 ]==7)& ]
PROG
(PARI) is_A023689(n)=hammingweight(n)==7 \\ M. F. Hasler, Aug 27 2014
(PARI) print1(t=2^7-1); for(i=2, 50, print1(", "t=A057168(t))) \\ M. F. Hasler, Aug 27 2014
(Python)
from itertools import islice
def A023689_gen(): # generator of terms
yield (n:=127)
while True: yield (n:=((n&~(b:=n+(a:=n&-n)))>>a.bit_length())^b)
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
STATUS
approved