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.

A191233 The number of times that the n-th digit of A154703(n) occurs in A154703(n).

This page as a plain text file.
%I A191233 #16 Feb 26 2024 15:38:44
%S A191233 1,1,5,8,11,4,16,19,23,27,32,14,38,42,47,51,23,61,64,31,35,37,80,84,
%T A191233 47,50,96,101,106,59,117,120,123,127,131,136,83,145,150,155,160,165,
%U A191233 172,175,109,112,189,116,201,206,125,218,129,130,232,236,147,245,156
%N A191233 The number of times that the n-th digit of A154703(n) occurs in A154703(n).
%H A191233 Nathaniel Johnston, <a href="/A191233/b191233.txt">Table of n, a(n) for n = 1..5000</a>
%e A191233 A154703(3) = 1011101. The third digit of 1011101 is "1", which occurs 5 times in 1011101. Thus a(3) = 5.
%e A191233 A154703(4) = 1011101111. The fourth digit of 1011101111 is "1", which occurs 8 times in 1011101111. Thus a(4) = 8.
%p A191233 with(StringTools): lim:=100: s:="": for j from 1 to lim do p:=ithprime(j): d:=convert(p,base,2): for k from nops(d) to 1 by -1 do s:=cat(s,d[k]): od: printf("%d, ", nops([SearchAll(s[j],s)])); od: # _Nathaniel Johnston_, May 27 2011
%t A191233 Module[{p = IntegerDigits[Prime[Range[100]], 2], d}, Array[Count[d = Flatten[p[[;; #]]], d[[#]]] &, Length[p]]] (* _Paolo Xausa_, Feb 26 2024 *)
%Y A191233 Cf. A004676, A154703, A190480, A191248.
%K A191233 nonn,easy,base
%O A191233 1,3
%A A191233 _Juri-Stepan Gerasimov_, May 27 2011
%E A191233 Corrected and extended by _Nathaniel Johnston_, May 27 2011