#calculate the number of outer neurons for 6 neighbours up to depth 10
awk -vk=$1 'BEGIN{if(k<=0)k=6; s[0]=0;s[1]=k; print 1,1,1; print 2,sum=k+1,k; for(i=2;i<25;i++) print i+1,sum += (s[i]=(k-4)*s[i-1]-s[i-2]), s[i]}'


