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.

A293375 Triangle read by rows: T(n, k), for 1 <= k <= n, where T(n, k) is defined in A192763.

This page as a plain text file.
%I A293375 #15 Oct 07 2017 21:57:34
%S A293375 1,2,-2,1,2,-3,1,-2,1,0,0,2,2,1,-5,1,-2,-3,-2,0,6,0,2,1,1,2,1,-7,0,-2,
%T A293375 2,0,2,-2,0,0,0,2,-3,1,1,-3,2,0,0,1,-2,1,-2,-5,-2,1,-2,0,10,0,2,2,1,0,
%U A293375 0,1,2,2,1,-11,0,-2,-3,0,2,6,2,0,-3,-2,0,0,-1
%N A293375 Triangle read by rows: T(n, k), for 1 <= k <= n, where T(n, k) is defined in A192763.
%C A293375 The function T(n, k) = T(k, n) is defined for k > n also but only the values for 1 <= k <= n as a triangular array are listed here.
%H A293375 M. Granvik, <a href="http://math.stackexchange.com/questions/50719/">Is this a recurrence for the Mertens function plus 2?</a>, Math StackExchange question 50719.
%e A293375 Triangle begins:
%e A293375 1;
%e A293375 2, -2;
%e A293375 1,  2, -3;
%e A293375 1, -2,  1,  0;
%e A293375 0,  2,  2,  1, -5;
%e A293375 1, -2, -3, -2,  0, 6;
%e A293375 ...
%t A293375 T[ n_, k_] := Which[ n < 1 || k < 1, 0, k > n, T[ k, n], k == 1, If[ n < 3, n, (n T[ n - 1, 1] - Sum[ T[ n, i], {i, 2, n - 1}]) / (n + 1)], n > k , T[ k, Mod[ n, k, 1]], True, - Sum[ T[ n, i], {i, n - 1}]];
%o A293375 (PARI) {T(n, k) = if( n<1 || k<1, 0, k>n, T(k, n), k==1, if( n<3, n, (n * T(n-1, 1) - sum( i=2, n-1, T(n, i))) / (n+1)), n>k, T(k, (n-1)%k+1), -sum( i=1, n-1, T(n, i)))};
%Y A293375 Cf. A192763.
%K A293375 sign,tabl
%O A293375 1,2
%A A293375 _Michael Somos_, Oct 07 2017