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.

A256170 Irregular triangle where the n-th row contains the binary representations of the factors of the member of GF(2)[x] whose binary representation is n.

This page as a plain text file.
%I A256170 #20 Nov 25 2015 23:15:14
%S A256170 2,3,2,2,3,3,2,3,7,2,2,2,3,7,2,3,3,11,2,2,3,13,2,7,3,3,3,2,2,2,2,3,3,
%T A256170 3,3,2,3,7,19,2,2,3,3,7,7,2,11,3,13,2,2,2,3,25,2,13,3,3,7,2,2,7,3,11,
%U A256170 2,3,3,3,31,2,2,2,2,2,3,31
%N A256170 Irregular triangle where the n-th row contains the binary representations of the factors of the member of GF(2)[x] whose binary representation is n.
%H A256170 <a href="/index/Ge#GF2X">Index entries for sequences operating on GF(2)[X]-polynomials</a>
%e A256170 9 is 1001 in binary, so it corresponds to x^3 + 1 in GF(2)[x]. This factors as (x+1) * (x^2+x+1), which have binary representations 3 and 7; so row 9 is 3, 7.
%e A256170 The triangle starts:
%e A256170 [empty row for n=1]
%e A256170 2
%e A256170 3
%e A256170 2, 2,
%e A256170 3, 3
%e A256170 2, 3
%e A256170 7
%e A256170 2, 2, 2
%e A256170 3, 7
%e A256170 2, 3, 3
%e A256170 11
%e A256170 2, 2, 3
%e A256170 13
%e A256170 2, 7
%e A256170 3, 3, 3
%p A256170 f:= proc(n)
%p A256170   local L,P,R;
%p A256170   L:= convert(n,base,2);
%p A256170   P:= add(L[i]*X^(i-1),i=1..nops(L));
%p A256170   R:= Factors(P) mod 2;
%p A256170   op(sort([seq(eval(r[1],X=2)$r[2], r=R[2])]));
%p A256170 end proc:
%p A256170 seq(f(n), n=1..50); # _Robert Israel_, Jun 07 2015
%o A256170 (PARI) arow(n)=my(fm=factor(Pol(binary(n))*Mod(1,2)),x=2,np,r,k);for(k=1,(np=#fm~),fm[k,1]=eval(lift(fm[k,1])));r=vector(sum(j=1,np,fm[j,2]));k=0;for(j=1,np,for(i=1,fm[j,2],r[k++]=fm[j,1]));r
%Y A256170 Cf. A014580, A027746, A091222 (row lengths).
%K A256170 nonn,tabf
%O A256170 2,1
%A A256170 _Franklin T. Adams-Watters_, Jun 07 2015