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.
%I A125144 #21 Jun 08 2024 08:53:54 %S A125144 1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1, %T A125144 0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1, %U A125144 1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0 %N A125144 Increments in the number of decimal digits of 4^n. %C A125144 This sequence is not periodic because log(4)/log(10) is an irrational number. - _T. D. Noe_, Jan 25 2007 %H A125144 Robert Israel, <a href="/A125144/b125144.txt">Table of n, a(n) for n = 1..10000</a> %F A125144 a(n)=Number_of_digits{4^(n+1)}-Number_of digits{4^(n)} with n>=0 and where "Number_of digits" is a hypothetical function giving the number of digits of the argument. %e A125144 a(1)=1 because 4^(1+1)=16 (two digits) 4^1=4 (one digit) and the difference is 1. %e A125144 a(2)=0 because 4^(2+1)=64 (two digits) 4^(2)=16 (two digits) and the difference is 0. %p A125144 P:=proc(n) local i,j,k,w,old; k:=4; for i from 1 by 1 to n do j:=k^i; w:=0; while j>0 do w:=w+1; j:=trunc(j/10); od; if i>1 then print(w-old); old:=w; else old:=w; fi; od; end: P(1000); %p A125144 # alternative: %p A125144 H:= [seq(ilog10(4^i),i=1..1001)]: %p A125144 H[2..-1]-H[1..-2]; # _Robert Israel_, Jul 12 2018 %t A125144 Differences[IntegerLength[4^Range[100]]] (* _Paolo Xausa_, Jun 08 2024 *) %o A125144 (PARI) a(n) = #digits(4^(n+1)) - #digits(4^n); \\ _Michel Marcus_, Jul 12 2018 %Y A125144 Cf. A125117, A125122. %Y A125144 First differences of A210434. %K A125144 easy,nonn,base %O A125144 1,1 %A A125144 _Paolo P. Lava_ and _Giorgio Balzarotti_, Jan 11 2007 %E A125144 Offset corrected by _Robert Israel_, Jul 11 2018