I'll just use zero for 0 dots.
0,1,2,8,64..
0,20,21, 23, 26..
I suppose 5 dots would have 8 lines to connect them all, so I should expect 2^8 configurations, if the function is 2^n where n is number of lines to connect all the dots. Now I need a function that gets n from a number of dots...