OEIS/Cheat sheet: Difference between revisions

From tehowiki
Jump to navigation Jump to search
Created page with "==== PARI ==== * Print a triangle T(n,k) for(n=0,10,for(k=0,n,print1(",",T(n,k)));print())"
 
No edit summary
 
Line 1: Line 1:
==== PARI ====
==== PARI ====
* Print a triangle T(n,k)
  for(n=0,10,for(k=0,n,print1(",",T(n,k)));print()) \\ Print triangle T(n,k)
  for(n=0,10,for(k=0,n,print1(",",T(n,k)));print())
 
==== Maple ====
ode:=algtorec(x^2*(1+x^2)*A^2-(1+x^2+x^4)*A+1+x^2,A,x,n,N);
OperToRecEq(ode,n,N,a);

Latest revision as of 20:39, 27 August 2025

PARI

for(n=0,10,for(k=0,n,print1(",",T(n,k)));print()) \\ Print triangle T(n,k)

Maple

ode:=algtorec(x^2*(1+x^2)*A^2-(1+x^2+x^4)*A+1+x^2,A,x,n,N);
OperToRecEq(ode,n,N,a);