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.

A158875 Row sums of A099884, the XOR difference triangle of the powers of 2.

This page as a plain text file.
%I A158875 #2 Mar 30 2012 18:37:16
%S A158875 1,5,15,45,107,265,615,1485,3227,7225,15735,35325,75019,163145,348135,
%T A158875 761805,1589147,3374905,7077495,15138045,31390219,66122825,137816295,
%U A158875 292344525,601532059,1253593145,2591401335,5435447805,11157226763
%N A158875 Row sums of A099884, the XOR difference triangle of the powers of 2.
%e A158875 Triangle A099884 begins:
%e A158875 1;
%e A158875 2, 3;
%e A158875 4, 6, 5;
%e A158875 8, 12, 10, 15;
%e A158875 16, 24, 20, 30, 17;
%e A158875 32, 48, 40, 60, 34, 51;
%e A158875 64, 96, 80, 120, 68, 102, 85;
%e A158875 128, 192, 160, 240, 136, 204, 170, 255;
%e A158875 256, 384, 320, 480, 272, 408, 340, 510, 257; ...
%e A158875 where terms in any column are formed from the XOR operation between
%e A158875 adjacent terms of the prior column, with column 0 being powers of 2.
%o A158875 (PARI) {a(n)=local(B,RS=0); for(k=0,n, B=0; for(i=0, k, B=bitxor(B, binomial(k, i)%2*2^(n-i))); RS+=B);RS}
%Y A158875 Cf. A099884.
%K A158875 nonn
%O A158875 0,2
%A A158875 _Paul D. Hanna_, Apr 11 2009