Does any one know how to work out the formula for any size step-stair on a 10 by 10 grid

yer mum on toast

htyzy