A124702 Number of base 9 circular n-digit numbers with adjacent digits differing by 1 or less.
1, 9, 25, 57, 149, 389, 1045, 2837, 7789, 21549, 60005, 167957, 472169, 1332249, 3770785, 10701617, 30442909, 86779229, 247817845, 708837797, 2030401509, 5823331109, 16720830525, 48060737357, 138268935049, 398126270889
Offset: 0
Links
Formula
G.f.: (1 - 28*x^2 + 56*x^3 + 63*x^4 - 196*x^5 + 30*x^6 + 108*x^7 - 21*x^8 - 8*x^9) / ((1 - x)*(1 - 3*x + x^2)*(1 - x - x^2)*(1 - 4*x + x^2 + 6*x^3 + x^4)) (conjectured). - Colin Barker, Jun 02 2017
Comments