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.

A093349 A 7-fractal "castle" starting with 0.

This page as a plain text file.
%I A093349 #11 Jun 17 2022 03:42:03
%S A093349 0,1,0,1,0,1,0,7,6,7,6,7,6,7,0,1,0,1,0,1,0,7,6,7,6,7,6,7,0,1,0,1,0,1,
%T A093349 0,7,6,7,6,7,6,7,0,1,0,1,0,1,0,49,48,49,48,49,48,49,42,43,42,43,42,43,
%U A093349 42,49,48,49,48,49,48,49,42,43,42,43,42,43,42,49,48,49,48,49,48,49,42,43
%N A093349 A 7-fractal "castle" starting with 0.
%H A093349 Amiram Eldar, <a href="/A093349/b093349.txt">Table of n, a(n) for n = 1..10000</a>
%F A093349 a(1) = 0 then a(n) = w(n) - a(n-w(n)) where w(n) = 7^floor(log(n-1)/log(7)).
%F A093349 a(n) = Sum_{i=1..n-1} (-1)^(i-1)*7^valuation(i, 7).
%t A093349 a[n_] := Sum[(-1)^(i+1) * 7^IntegerExponent[i, 7], {i, 1, n-1}]; Array[a, 100] (* _Amiram Eldar_, Jun 17 2022 *)
%o A093349 (PARI) a(n)=if(n<2,0,7^floor(log(n-1)/log(7))-a(n-7^floor(log(n-1)/log(7))))
%o A093349 (PARI) a(n)=-sum(i=1,n-1,(-1)^i*7^valuation(i,7))
%Y A093349 Cf. A093347, A093348
%K A093349 nonn
%O A093349 1,8
%A A093349 _Benoit Cloitre_, Apr 26 2004