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 A196096 #20 Jul 28 2025 02:33:32 %S A196096 0,0,0,0,1,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0, %T A196096 0,0,1,1,1,2,3,2,1,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,2, %U A196096 1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1 %N A196096 Occurrences of '11' in base 3 expansion of n. %C A196096 Occurrences of '11' in A007089(n). This is to base 3 and A007089 as A014081 is to base 2 A007088. %C A196096 First occurrence of k>0 = 4, 13, 40, 121, 364, ..., = A003462(k). - _Robert G. Wilson v_, Sep 27 2011 %H A196096 T. D. Noe, <a href="/A196096/b196096.txt">Table of n, a(n) for n = 0..1000</a> %e A196096 a(4) = 1 because 4 in base 3 is "11" which has one instance of "11". %e A196096 a(13) = 2 because the number 13 in base 3 is "111" which has two substrings of "11". %p A196096 A196096 := proc(n) %p A196096 local a,dgs3 ; %p A196096 a := 0 ; %p A196096 dgs3 := convert(n,base,3) ; %p A196096 for i from 1 to nops(dgs3)-1 do %p A196096 if op(i,dgs3)=1 and op(i+1,dgs3)=1 then %p A196096 a := a+1 ; %p A196096 end if; %p A196096 end do; %p A196096 a ; %p A196096 end proc: %p A196096 seq(A196096(n),n=0..80) ; # _R. J. Mathar_, Sep 28 2011 %t A196096 f[n_] := Count[ Partition[ IntegerDigits[ n, 3], 2, 1], {1, 1}]; Array[f, 100, 0] (* _Robert G. Wilson v_, Sep 27 2011 *) %Y A196096 Cf. A007089, A014081. %K A196096 easy,nonn %O A196096 0,14 %A A196096 _Jonathan Vos Post_, Sep 27 2011