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.

A255743 a(1) = 1; for n > 1, a(n) = 9*8^{A000120(n-1)-1}.

This page as a plain text file.
%I A255743 #38 Dec 20 2024 17:42:47
%S A255743 1,9,9,72,9,72,72,576,9,72,72,576,72,576,576,4608,9,72,72,576,72,576,
%T A255743 576,4608,72,576,576,4608,576,4608,4608,36864,9,72,72,576,72,576,576,
%U A255743 4608,72,576,576,4608,576,4608,4608,36864,72,576,576,4608,576,4608,4608
%N A255743 a(1) = 1; for n > 1, a(n) = 9*8^{A000120(n-1)-1}.
%C A255743 Also, this is a row of the square array A255740.
%C A255743 Partial sums give A255764.
%H A255743 Felix Fröhlich, <a href="/A255743/b255743.txt">Table of n, a(n) for n = 1..10000</a>
%H A255743 Hsien-Kuei Hwang, Svante Janson, and Tsung-Hsi Tsai, <a href="https://arxiv.org/abs/2210.10968">Identities and periodic oscillations of divide-and-conquer recurrences splitting at half</a>, arXiv:2210.10968 [cs.DS], 2022, p. 33.
%e A255743 Written as an irregular triangle in which the row lengths are the terms of A011782, the sequence begins:
%e A255743    1;
%e A255743    9;
%e A255743    9, 72;
%e A255743    9, 72, 72, 576;
%e A255743    9, 72, 72, 576, 72, 576, 576, 4608;
%e A255743    ...
%t A255743 MapAt[Floor, Array[9*8^(DigitCount[# - 1, 2, 1] - 1) &, 55], 1] (* _Michael De Vlieger_, Nov 03 2022 *)
%o A255743 (PARI) a(n) = if (n==1, 1, 9*8^(hammingweight(n-1)-1)); \\ _Michel Marcus_, Mar 15 2015
%o A255743 (Python) # Python 3.10+
%o A255743 def A255743(n): return 1 if n == 1 else 9*(1<<((n-1).bit_count()-1)*3) # _Chai Wah Wu_, Nov 15 2022
%Y A255743 Cf. A000120, A151787, A147582, A151789, A151779, A151791, A151782, A255740, A255741, A255744, A255745, A255764.
%K A255743 nonn
%O A255743 1,2
%A A255743 _Omar E. Pol_, Mar 05 2015
%E A255743 More terms from _Michel Marcus_, Mar 15 2015