(MAGMAMagma) I:=[1, 21, 292, 3402]; [n le 4 select I[n] else 21*Self(n-1)-149*Self(n-2)+399*Self(n-3)-270*Self(n-4): n in [1..25]]; /* or */ m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-5*x)*(1-6*x)*(1-9*x)))); // Vincenzo Librandi, Jul 12 2013