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.

A164364 a(n) = A164349(2^n).

This page as a plain text file.
%I A164364 #17 Jan 27 2015 11:22:22
%S A164364 1,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,1,
%T A164364 0,0,1,0,1,0,1,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,1,0,
%U A164364 0,1,0,0,1,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,1,0,0,1,0,1,0
%N A164364 a(n) = A164349(2^n).
%C A164364 This is the last symbol at each stage of the method for generating A164349 using string operations.
%C A164364 The number of 1's in the string is given by A164363, and this number is given by the recurrence
%C A164364 A164363(n+1) = 2 * A164363(n) - A164364(n).
%C A164364 This leads to the formula A164363(n+1) = 2^n - 2^(n-1) * A164364(1) - 2^(n-2) * A164364(2) - ... - A164364(n);
%C A164364 for example,
%C A164364 A164363(5) = 16 - 8 A164364(1) - 4 A164364(2) - 2 A164364(3) - A164364(4).
%C A164364 This means that since the total number of symbols in the n-th string is 2**n + 1, the proportion of 0's in the first k terms of A164349, as n tends to infinity, is given by the number whose binary expansion is exactly this sequence. This number is approximately 0.6450588..
%H A164364 Paul Tek, <a href="/A164364/b164364.txt">Table of n, a(n) for n = 0..10000</a>
%p A164364 A053645 := proc(n) local dgs ; dgs := convert(n,base,2) ; add(op(i,dgs)*2^(i-1),i=1..nops(dgs)-1) ; end: A164349 := proc(n) option remember; if n <= 1 then n; else a := A053645(n-1) ; while a > 1 do a := A053645(a-1) ; od: a ; fi; end: A164364 := proc(n) A164349(2^n) ; end: seq(A164364(n),n=0..120) ; # _R. J. Mathar_, Aug 17 2009
%t A164364 t = Nest[ Most@ Flatten@ {#, #} &, {0, 1}, 25]; Table[ t[[2^n + 1]], {n, 0, 25}] (* _Robert G. Wilson v_, Aug 17 2009 *)
%Y A164364 Cf. A164349, A164362, A164363.
%K A164364 nonn
%O A164364 0,1
%A A164364 _Jack W Grahl_, Aug 14 2009
%E A164364 More terms from _R. J. Mathar_, Aug 17 2009
%E A164364 Incorrect comments removed by _Jack W Grahl_, Dec 26 2014