OFFSET
0,2
COMMENTS
[Empirical] a(base,n)=a(base-1,n)+3^(n-1) for base>=n; a(base,n)=a(base-1,n)+3^(n-1)-2 when base=n-1.
FORMULA
G.f.: (1+10*x-126*x^2+366*x^3-166*x^4-700*x^5+679*x^6+426*x^7-466*x^8-104*x^9+73*x^10+6*x^11) / ((1-x)*(1-10*x+34*x^2-32*x^3-54*x^4+100*x^5+23*x^6-76*x^7-10*x^8+12*x^9+x^10)) (conjectured). - Colin Barker, Jul 18 2017
PROG
(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-2](($[i]`-$[i+1]`>1)+($[i+1]`-$[i]`>1))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 26 2006
STATUS
approved