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.

A288310 a(0) = a(1) = 1; a(2*n) = a(n) - a(n-1), a(2*n+1) = Sum_{k=0..n} a(n-k).

This page as a plain text file.
%I A288310 #7 Dec 07 2019 12:18:29
%S A288310 1,1,0,2,-1,2,2,4,-3,3,3,5,0,7,2,11,-7,8,6,11,0,14,2,19,-5,19,7,26,-5,
%T A288310 28,9,39,-18,32,15,40,-2,46,5,57,-11,57,14,71,-12,73,17,92,-24,87,24,
%U A288310 106,-12,113,19,139,-31,134,33,162,-19,171,30,210,-57,192,50,224,-17,239,25
%N A288310 a(0) = a(1) = 1; a(2*n) = a(n) - a(n-1), a(2*n+1) = Sum_{k=0..n} a(n-k).
%C A288310 Sequence has its first differences and its partial sums as bisections.
%H A288310 Michael Gilleland, <a href="/selfsimilar.html">Some Self-Similar Integer Sequences</a>
%F A288310 a(n) = Sum_{k=0..n} a(2*k).
%F A288310 a(n) = a(2*n+1) - a(2*n-1).
%F A288310 a(2*n+1) = Sum_{k=0..n} Sum_{m=0..k} a(2*m).
%e A288310 a(0) = a(1) = 1 by definition;
%e A288310 a(2) = a(2*1) = a(1) - a(0) = 0;
%e A288310 a(3) = a(2*1+1) = a(0) + a(1) = 2;
%e A288310 a(4) = a(2*2) = a(2) - a(1) = -1;
%e A288310 a(5) = a(2*2+1) = a(0) + a(1) + a(2) = 2;
%e A288310 a(6) = a(2*3) = a(3) - a(2) = 2, etc.
%t A288310 a[0] = 1; a[1] = 1; a[n_] := a[n] = If[EvenQ[n], a[n/2] - a[(n - 2)/2], Sum[a[(n - 1)/2 - k], {k, 0, (n - 1)/2}]]; Table[a[n], {n, 0, 70}]
%o A288310 (Python)
%o A288310 def a(n): return 1 if n<2 else a(n/2) - a(n/2 - 1) if n%2==0 else sum([a((n - 1)/2 - k) for k in range((n + 1)/2)]) # _Indranil Ghosh_, Jun 08 2017
%Y A288310 Cf. A030067, A086449, A086450, A109671.
%K A288310 sign
%O A288310 0,4
%A A288310 _Ilya Gutkovskiy_, Jun 07 2017