kresults.html: a data file to accompany the maple package KACZYNSKI.

For a base (n) and number of digits (h), this file contains all "h-digit solutions for n" [(a_1,...,a_h), (a_h,...,a_1)] such that
k(a_h*n^(h-1)+...+a_1)=(a_1*n^(h-1)+...+a_h) with a_1>0, a_h>0, k>1, (k an integer), and 0<=a_i<=n-1 for i=1,...h.


For example, notice that
"for n = ", 10, "h = ", 4, "solutions are:"
{[[8, 7, 1, 2], [2, 1, 7, 8]],
[[9, 8, 0, 1], [1, 0, 8, 9]]}


i.e. 4(2*10^3+1*10^2+7*10+8) = (8*10^3+7*10^2+1*10+2)
and 9(1*10^3+0*10^2+8*10+9) = (9*10^3+8*10^2+0*10+1)


Values in red are solutions (a) with an odd number of digits such that deleting the middle digit is NOT an even digit solution for n, or (b) even digit solutions such that inserting a digit in the middle does NOT give an odd digit solution for n.

last update: November 13, 2005



"for n = ", 2, "h = ", 2, "solutions are:"
{}

"for n = ", 2, "h = ", 3, "solutions are:"
{}

"for n = ", 2, "h = ", 4, "solutions are:"
{}

"for n = ", 2, "h = ", 5, "solutions are:"
{}

"for n = ", 2, "h = ", 6, "solutions are:"
{}

"for n = ", 2, "h = ", 7, "solutions are:"
{}

"for n = ", 2, "h = ", 8, "solutions are:"
{}

"for n = ", 2, "h = ", 9, "solutions are:"
{}

"for n = ", 2, "h = ", 10, "solutions are:"
{}





"for n = ", 3, "h = ", 2, "solutions are:"
{}

"for n = ", 3, "h = ", 3, "solutions are:"
{}

"for n = ", 3, "h = ", 4, "solutions are:"
{[[2, 1, 0, 1], [1, 0, 1, 2]]}

"for n = ", 3, "h = ", 5, "solutions are:"
{[[2, 1, 2, 0, 1], [1, 0, 2, 1, 2]]}

"for n = ", 3, "h = ", 6, "solutions are:"
{[[2, 1, 2, 2, 0, 1], [1, 0, 2, 2, 1, 2]]}

"for n = ", 3, "h = ", 7, "solutions are:"
{[[2, 1, 2, 2, 2, 0, 1], [1, 0, 2, 2, 2, 1, 2]]}

"for n = ", 3, "h = ", 8, "solutions are:"
{[[2, 1, 0, 1, 2, 1, 0, 1], [1, 0, 1, 2, 1, 0, 1, 2]],
[[2, 1, 2, 2, 2, 2, 0, 1], [1, 0, 2, 2, 2, 2, 1, 2]]}

"for n = ", 3, "h = ", 9, "solutions are:"
{[[2, 1, 0, 1, 0, 2, 1, 0, 1], [1, 0, 1, 2, 0, 1, 0, 1, 2]],
[[2, 1, 2, 2, 2, 2, 2, 0, 1], [1, 0, 2, 2, 2, 2, 2, 1, 2]]}
"for n = ", 3, "h = ", 10, "solutions are:"
{[[2, 1, 0, 1, 0, 0, 2, 1, 0, 1], [1, 0, 1, 2, 0, 0, 1, 0, 1, 2]],
[[2, 1, 2, 0, 1, 2, 1, 2, 0, 1], [1, 0, 2, 1, 2, 1, 0, 2, 1, 2]],
[[2, 1, 2, 2, 2, 2, 2, 2, 0, 1], [1, 0, 2, 2, 2, 2, 2, 2, 1, 2]]}





"for n = ", 4, "h = ", 2, "solutions are:"
{}

"for n = ", 4, "h = ", 3, "solutions are:"
{}

"for n = ", 4, "h = ", 4, "solutions are:"
{[[3, 2, 0, 1], [1, 0, 2, 3]]}

"for n = ", 4, "h = ", 5, "solutions are:"
{[[3, 2, 3, 0, 1], [1, 0, 3, 2, 3]]}

"for n = ", 4, "h = ", 6, "solutions are:"
{[[3, 2, 3, 3, 0, 1], [1, 0, 3, 3, 2, 3]]}

"for n = ", 4, "h = ", 7, "solutions are:"
{[[3, 2, 3, 3, 3, 0, 1], [1, 0, 3, 3, 3, 2, 3]]}

"for n = ", 4, "h = ", 8, "solutions are:"
{[[3, 2, 0, 1, 3, 2, 0, 1], [1, 0, 2, 3, 1, 0, 2, 3]],
[[3, 2, 3, 3, 3, 3, 0, 1], [1, 0, 3, 3, 3, 3, 2, 3]]}

"for n = ", 4, "h = ", 9, "solutions are:"
{[[3, 2, 0, 1, 0, 3, 2, 0, 1], [1, 0, 2, 3, 0, 1, 0, 2, 3]],
[[3, 2, 3, 3, 3, 3, 3, 0, 1], [1, 0, 3, 3, 3, 3, 3, 2, 3]]}

"for n = ", 4, "h = ", 10, "solutions are:"
{[[3, 2, 0, 1, 0, 0, 3, 2, 0, 1], [1, 0, 2, 3, 0, 0, 1, 0, 2, 3]],
[[3, 2, 3, 0, 1, 3, 2, 3, 0, 1], [1, 0, 3, 2, 3, 1, 0, 3, 2, 3]],
[[3, 2, 3, 3, 3, 3, 3, 3, 0, 1], [1, 0, 3, 3, 3, 3, 3, 3, 2, 3]]}





"for n = ", 5, "h = ", 2, "solutions are:"
{[[3, 1], [1, 3]]}

"for n = ", 5, "h = ", 3, "solutions are:"
{[[3, 4, 1], [1, 4, 3]]}

"for n = ", 5, "h = ", 4, "solutions are:"
{[[3, 1, 3, 1], [1, 3, 1, 3]],
[[3, 4, 4, 1], [1, 4, 4, 3]],
[[4, 3, 0, 1], [1, 0, 3, 4]]}

"for n = ", 5, "h = ", 5, "solutions are:"
{[[3, 1, 0, 3, 1], [1, 3, 0, 1, 3]],
[[3, 4, 4, 4, 1], [1, 4, 4, 4, 3]],
[[4, 3, 4, 0, 1], [1, 0, 4, 3, 4]]}

"for n = ", 5, "h = ", 6, "solutions are:"
{[[3, 1, 0, 0, 3, 1], [1, 3, 0, 0, 1, 3]],
[[3, 1, 3, 1, 3, 1], [1, 3, 1, 3, 1, 3]],
[[3, 4, 1, 3, 4, 1], [1, 4, 3, 1, 4, 3]],
[[3, 4, 4, 4, 4, 1], [1, 4, 4, 4, 4, 3]],
[[4, 3, 4, 4, 0, 1], [1, 0, 4, 4, 3, 4]]}

"for n = ", 5, "h = ", 7, "solutions are:"
{[[3, 1, 0, 0, 0, 3, 1], [1, 3, 0, 0, 0, 1, 3]],
[[3, 1, 3, 4, 1, 3, 1], [1, 3, 1, 4, 3, 1, 3]],
[[3, 4, 1, 0, 3, 4, 1], [1, 4, 3, 0, 1, 4, 3]],
[[3, 4, 4, 4, 4, 4, 1], [1, 4, 4, 4, 4, 4, 3]],
[[4, 3, 4, 4, 4, 0, 1], [1, 0, 4, 4, 4, 3, 4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3, 4, 4, 4, 1, 3, 4, 4, 4, 1], [1, 4, 4, 4, 3, 1, 4, 4, 4, 3]],
[[3, 4, 4, 4, 4, 4, 4, 4, 4, 1], [1, 4, 4, 4, 4, 4, 4, 4, 4, 3]],
[[4, 3, 0, 1, 0, 0, 4, 3, 0, 1], [1, 0, 3, 4, 0, 0, 1, 0, 3, 4]],
[[4, 3, 4, 0, 1, 4, 3, 4, 0, 1], [1, 0, 4, 3, 4, 1, 0, 4, 3, 4]],
[[4, 3, 4, 4, 4, 4, 4, 4, 0, 1], [1, 0, 4, 4, 4, 4, 4, 4, 3, 4]]}





"for n = ", 6, "h = ", 2, "solutions are:"
{}

"for n = ", 6, "h = ", 3, "solutions are:"
{}

"for n = ", 6, "h = ", 4, "solutions are:"
{[[4, 3, 1, 2], [2, 1, 3, 4]],
[[5, 4, 0, 1], [1, 0, 4, 5]]}

"for n = ", 6, "h = ", 5, "solutions are:"
{[[4, 3, 5, 1, 2], [2, 1, 5, 3, 4]],
[[5, 4, 5, 0, 1], [1, 0, 5, 4, 5]]}

"for n = ", 6, "h = ", 6, "solutions are:"
{[[4, 3, 5, 5, 1, 2], [2, 1, 5, 5, 3, 4]],
[[5, 4, 5, 5, 0, 1], [1, 0, 5, 5, 4, 5]]}

"for n = ", 6, "h = ", 7, "solutions are:"
{[[4, 3, 5, 5, 5, 1, 2], [2, 1, 5, 5, 5, 3, 4]],
[[5, 4, 5, 5, 5, 0, 1], [1, 0, 5, 5, 5, 4, 5]]}

"for n = ", 6, "h = ", 8, "solutions are:"
{[[4, 3, 1, 2, 4, 3, 1, 2], [2, 1, 3, 4, 2, 1, 3, 4]],
[[4, 3, 5, 5, 5, 5, 1, 2], [2, 1, 5, 5, 5, 5, 3, 4]],
[[5, 4, 0, 1, 5, 4, 0, 1], [1, 0, 4, 5, 1, 0, 4, 5]],
[[5, 4, 5, 5, 5, 5, 0, 1], [1, 0, 5, 5, 5, 5, 4, 5]]}

"for n = ", 6, "h = ", 9, "solutions are:"
{[[4, 3, 1, 2, 0, 4, 3, 1, 2], [2, 1, 3, 4, 0, 2, 1, 3, 4]],
[[4, 3, 5, 5, 5, 5, 5, 1, 2], [2, 1, 5, 5, 5, 5, 5, 3, 4]],
[[5, 4, 0, 1, 0, 5, 4, 0, 1], [1, 0, 4, 5, 0, 1, 0, 4, 5]],
[[5, 4, 5, 5, 5, 5, 5, 0, 1], [1, 0, 5, 5, 5, 5, 5, 4, 5]]}

"for n = ", 6, "h = ", 10, "solutions are:"
{[[4, 3, 1, 2, 0, 0, 4, 3, 1, 2], [2, 1, 3, 4, 0, 0, 2, 1, 3, 4]],
[[4, 3, 5, 1, 2, 4, 3, 5, 1, 2], [2, 1, 5, 3, 4, 2, 1, 5, 3, 4]],
[[4, 3, 5, 5, 5, 5, 5, 5, 1, 2], [2, 1, 5, 5, 5, 5, 5, 5, 3, 4]],
[[5, 4, 0, 1, 0, 0, 5, 4, 0, 1], [1, 0, 4, 5, 0, 0, 1, 0, 4, 5]],
[[5, 4, 5, 0, 1, 5, 4, 5, 0, 1], [1, 0, 5, 4, 5, 1, 0, 5, 4, 5]],
[[5, 4, 5, 5, 5, 5, 5, 5, 0, 1], [1, 0, 5, 5, 5, 5, 5, 5, 4, 5]]}





"for n = ", 7, "h = ", 2, "solutions are:"
{[[5, 1], [1, 5]]}

"for n = ", 7, "h = ", 3, "solutions are:"
{[[5, 6, 1], [1, 6, 5]]}

"for n = ", 7, "h = ", 4, "solutions are:"
{[[5, 1, 5, 1], [1, 5, 1, 5]],
[[5, 6, 6, 1], [1, 6, 6, 5]],
[[6, 5, 0, 1], [1, 0, 5, 6]]}

"for n = ", 7, "h = ", 5, "solutions are:"
{[[5, 1, 0, 5, 1], [1, 5, 0, 1, 5]],
[[5, 6, 6, 6, 1], [1, 6, 6, 6, 5]],
[[6, 5, 6, 0, 1], [1, 0, 6, 5, 6]]}

"for n = ", 7, "h = ", 6, "solutions are:"
{[[5, 1, 0, 0, 5, 1], [1, 5, 0, 0, 1, 5]],
[[5, 1, 5, 1, 5, 1], [1, 5, 1, 5, 1, 5]],
[[5, 6, 1, 5, 6, 1], [1, 6, 5, 1, 6, 5]],
[[5, 6, 6, 6, 6, 1], [1, 6, 6, 6, 6, 5]],
[[6, 5, 6, 6, 0, 1], [1, 0, 6, 6, 5, 6]]}

"for n = ", 7, "h = ", 7, "solutions are:"
{[[5, 1, 0, 0, 0, 5, 1], [1, 5, 0, 0, 0, 1, 5]],
[[5, 1, 5, 6, 1, 5, 1], [1, 5, 1, 6, 5, 1, 5]],
[[5, 6, 1, 0, 5, 6, 1], [1, 6, 5, 0, 1, 6, 5]],
[[5, 6, 6, 6, 6, 6, 1], [1, 6, 6, 6, 6, 6, 5]],
[[6, 5, 6, 6, 6, 0, 1], [1, 0, 6, 6, 6, 5, 6]]}

"for n = ", 7, "h = ", 8, "solutions are:"
{[[5, 1, 0, 0, 0, 0, 5, 1], [1, 5, 0, 0, 0, 0, 1, 5]],
[[5, 1, 0, 5, 1, 0, 5, 1], [1, 5, 0, 1, 5, 0, 1, 5]],
[[5, 1, 5, 1, 5, 1, 5, 1], [1, 5, 1, 5, 1, 5, 1, 5]],
[[5, 1, 5, 6, 6, 1, 5, 1], [1, 5, 1, 6, 6, 5, 1, 5]],
[[5, 6, 1, 0, 0, 5, 6, 1], [1, 6, 5, 0, 0, 1, 6, 5]],
[[5, 6, 1, 5, 1, 5, 6, 1], [1, 6, 5, 1, 5, 1, 6, 5]],
[[5, 6, 6, 1, 5, 6, 6, 1], [1, 6, 6, 5, 1, 6, 6, 5]],
[[5, 6, 6, 6, 6, 6, 6, 1], [1, 6, 6, 6, 6, 6, 6, 5]],
[[6, 5, 0, 1, 6, 5, 0, 1], [1, 0, 5, 6, 1, 0, 5, 6]],
[[6, 5, 6, 6, 6, 6, 0, 1], [1, 0, 6, 6, 6, 6, 5, 6]]}

"for n = ", 7, "h = ", 9, "solutions are:"
{[[5, 1, 0, 0, 0, 0, 0, 5, 1], [1, 5, 0, 0, 0, 0, 0, 1, 5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 6, 6, 6, 6, 5, 1, 5]],
[[5, 6, 1, 0, 0, 0, 0, 5, 6, 1], [1, 6, 5, 0, 0, 0, 0, 1, 6, 5]],
[[5, 6, 1, 0, 5, 1, 0, 5, 6, 1], [1, 6, 5, 0, 1, 5, 0, 1, 6, 5]],
[[5, 6, 1, 5, 1, 5, 1, 5, 6, 1], [1, 6, 5, 1, 5, 1, 5, 1, 6, 5]],
[[5, 6, 1, 5, 6, 6, 1, 5, 6, 1], [1, 6, 5, 1, 6, 6, 5, 1, 6, 5]],
[[5, 6, 6, 1, 0, 0, 5, 6, 6, 1], [1, 6, 6, 5, 0, 0, 1, 6, 6, 5]],
[[5, 6, 6, 1, 5, 1, 5, 6, 6, 1], [1, 6, 6, 5, 1, 5, 1, 6, 6, 5]],
[[5, 6, 6, 6, 1, 5, 6, 6, 6, 1], [1, 6, 6, 6, 5, 1, 6, 6, 6, 5]],
[[5, 6, 6, 6, 6, 6, 6, 6, 6, 1], [1, 6, 6, 6, 6, 6, 6, 6, 6, 5]],
[[6, 5, 0, 1, 0, 0, 6, 5, 0, 1], [1, 0, 5, 6, 0, 0, 1, 0, 5, 6]],
[[6, 5, 6, 0, 1, 6, 5, 6, 0, 1], [1, 0, 6, 5, 6, 1, 0, 6, 5, 6]],
[[6, 5, 6, 6, 6, 6, 6, 6, 0, 1], [1, 0, 6, 6, 6, 6, 6, 6, 5, 6]]}





"for n = ", 8, "h = ", 2, "solutions are:"
{[[5, 2], [2, 5]]}

"for n = ", 8, "h = ", 3, "solutions are:"
{[[5, 7, 2], [2, 7, 5]]}

"for n = ", 8, "h = ", 4, "solutions are:"
{[[5, 1, 0, 1], [1, 0, 1, 5]],
[[5, 2, 5, 2], [2, 5, 2, 5]],
[[5, 7, 7, 2], [2, 7, 7, 5]],
[[6, 5, 1, 2], [2, 1, 5, 6]],
[[7, 6, 0, 1], [1, 0, 6, 7]]}

"for n = ", 8, "h = ", 5, "solutions are:"
{[[5, 2, 0, 5, 2], [2, 5, 0, 2, 5]],
[[5, 6, 1, 1, 1], [1, 1, 1, 6, 5]],
[[5, 7, 7, 7, 2], [2, 7, 7, 7, 5]],
[[6, 5, 7, 1, 2], [2, 1, 7, 5, 6]],
[[7, 6, 7, 0, 1], [1, 0, 7, 6, 7]]}

"for n = ", 8, "h = ", 6, "solutions are:"
{[[5, 1, 5, 2, 0, 1], [1, 0, 2, 5, 1, 5]],
[[5, 2, 0, 0, 5, 2], [2, 5, 0, 0, 2, 5]],
[[5, 2, 5, 2, 5, 2], [2, 5, 2, 5, 2, 5]],
[[5, 6, 6, 2, 1, 1], [1, 1, 2, 6, 6, 5]],
[[5, 7, 2, 5, 7, 2], [2, 7, 5, 2, 7, 5]],
[[5, 7, 7, 7, 7, 2], [2, 7, 7, 7, 7, 5]],
[[6, 5, 7, 7, 1, 2], [2, 1, 7, 7, 5, 6]],
[[7, 6, 7, 7, 0, 1], [1, 0, 7, 7, 6, 7]]}

"for n = ", 8, "h = ", 7, "solutions are:"
{[[5, 1, 0, 6, 1, 0, 1], [1, 0, 1, 6, 0, 1, 5]],
[[5, 2, 0, 0, 0, 5, 2], [2, 5, 0, 0, 0, 2, 5]],
[[5, 2, 5, 7, 2, 5, 2], [2, 5, 2, 7, 5, 2, 5]],
[[5, 6, 6, 7, 2, 1, 1], [1, 1, 2, 7, 6, 6, 5]],
[[5, 7, 2, 0, 5, 7, 2], [2, 7, 5, 0, 2, 7, 5]],
[[5, 7, 7, 7, 7, 7, 2], [2, 7, 7, 7, 7, 7, 5]],
[[6, 5, 7, 7, 7, 1, 2], [2, 1, 7, 7, 7, 5, 6]],
[[7, 6, 7, 7, 7, 0, 1], [1, 0, 7, 7, 7, 6, 7]]}

"for n = ", 8, "h = ", 8, "solutions are:"
{[[5, 1, 0, 1, 5, 1, 0, 1], [1, 0, 1, 5, 1, 0, 1, 5]],
[[5, 1, 5, 2, 5, 2, 0, 1], [1, 0, 2, 5, 2, 5, 1, 5]],
[[5, 2, 0, 0, 0, 0, 5, 2], [2, 5, 0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7, 7, 5, 2, 7, 7, 7, 5]],
[[5, 7, 7, 7, 7, 7, 7, 7, 7, 2], [2, 7, 7, 7, 7, 7, 7, 7, 7, 5]],
[[6, 5, 1, 2, 0, 0, 6, 5, 1, 2], [2, 1, 5, 6, 0, 0, 2, 1, 5, 6]],
[[6, 5, 7, 1, 2, 6, 5, 7, 1, 2], [2, 1, 7, 5, 6, 2, 1, 7, 5, 6]],
[[6, 5, 7, 7, 7, 7, 7, 7, 1, 2], [2, 1, 7, 7, 7, 7, 7, 7, 5, 6]],
[[7, 6, 0, 1, 0, 0, 7, 6, 0, 1], [1, 0, 6, 7, 0, 0, 1, 0, 6, 7]],
[[7, 6, 7, 0, 1, 7, 6, 7, 0, 1], [1, 0, 7, 6, 7, 1, 0, 7, 6, 7]],
[[7, 6, 7, 7, 7, 7, 7, 7, 0, 1], [1, 0, 7, 7, 7, 7, 7, 7, 6, 7]]}





"for n = ", 9, "h = ", 2, "solutions are:"
{[[7, 1], [1, 7]]}

"for n = ", 9, "h = ", 3, "solutions are:"
{[[7, 8, 1], [1, 8, 7]]}

"for n = ", 9, "h = ", 4, "solutions are:"
{[[6, 5, 2, 3], [3, 2, 5, 6]],
[[7, 1, 7, 1], [1, 7, 1, 7]],
[[7, 8, 8, 1], [1, 8, 8, 7]],
[[8, 7, 0, 1], [1, 0, 7, 8]]}

"for n = ", 9, "h = ", 5, "solutions are:"
{[[6, 5, 8, 2, 3], [3, 2, 8, 5, 6]],
[[7, 1, 0, 7, 1], [1, 7, 0, 1, 7]],
[[7, 8, 8, 8, 1], [1, 8, 8, 8, 7]],
[[8, 7, 8, 0, 1], [1, 0, 8, 7, 8]]}

"for n = ", 9, "h = ", 6, "solutions are:"
{[[6, 5, 8, 8, 2, 3], [3, 2, 8, 8, 5, 6]],
[[7, 1, 0, 0, 7, 1], [1, 7, 0, 0, 1, 7]],
[[7, 1, 7, 1, 7, 1], [1, 7, 1, 7, 1, 7]],
[[7, 8, 1, 7, 8, 1], [1, 8, 7, 1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"for n = ", 9, "k = ", 9, "solutions are:"
{[[6, 5, 2, 3, 0, 6, 5, 2, 3], [3, 2, 5, 6, 0, 3, 2, 5, 6]],
[[6, 5, 8, 8, 8, 8, 8, 2, 3], [3, 2, 8, 8, 8, 8, 8, 5, 6]],
[[7, 1, 0, 0, 0, 0, 0, 7, 1], [1, 7, 0, 0, 0, 0, 0, 1, 7]],
[[7, 1, 0, 7, 8, 1, 0, 7, 1], [1, 7, 0, 1, 8, 7, 0, 1, 7]],
[[7, 1, 7, 1, 0, 7, 1, 7, 1], [1, 7, 1, 7, 0, 1, 7, 1, 7]],
[[7, 1, 7, 8, 8, 8, 1, 7, 1], [1, 7, 1, 8, 8, 8, 7, 1, 7]],
[[7, 8, 1, 0, 0, 0, 7, 8, 1], [1, 8, 7, 0, 0, 0, 1, 8, 7]],
[[7, 8, 1, 7, 8, 1, 7, 8, 1], [1, 8, 7, 1, 8, 7, 1, 8, 7]],
[[7, 8, 8, 1, 0, 7, 8, 8, 1], [1, 8, 8, 7, 0, 1, 8, 8, 7]],
[[7, 8, 8, 8, 8, 8, 8, 8, 1], [1, 8, 8, 8, 8, 8, 8, 8, 7]],
[[8, 7, 0, 1, 0, 8, 7, 0, 1], [1, 0, 7, 8, 0, 1, 0, 7, 8]],
[[8, 7, 8, 8, 8, 8, 8, 0, 1], [1, 0, 8, 8, 8, 8, 8, 7, 8]]}





"for n = ", 10, "h = ", 2, "solutions are:"
{}

"for n = ", 10, "h = ", 3, "solutions are:"
{}

"for n = ", 10, "h = ", 4, "solutions are:"
{[[8, 7, 1, 2], [2, 1, 7, 8]],
[[9, 8, 0, 1], [1, 0, 8, 9]]}

"for n = ", 10, "h = ", 5, "solutions are:"
{[[8, 7, 9, 1, 2], [2, 1, 9, 7, 8]],
[[9, 8, 9, 0, 1], [1, 0, 9, 8, 9]]}

"for n = ", 10, "h = ", 6, "solutions are:"
{[[8, 7, 9, 9, 1, 2], [2, 1, 9, 9, 7, 8]],
[[9, 8, 9, 9, 0, 1], [1, 0, 9, 9, 8, 9]]}

"for n = ", 10, "h = ", 7, "solutions are:"
{[[8, 7, 9, 9, 9, 1, 2], [2, 1, 9, 9, 9, 7, 8]],
[[9, 8, 9, 9, 9, 0, 1], [1, 0, 9, 9, 9, 8, 9]]}





"for n = ", 11, "h = ", 2, "solutions are:"
{[[4, 1], [1, 4]],
[[7, 3], [3, 7]],
[[8, 2], [2, 8]],
[[9, 1], [1, 9]]}

"for n = ", 11, "h = ", 3, "solutions are:"
{[[4, 5, 1], [1, 5, 4]],
[[7, 10, 3], [3, 10, 7]],
[[8, 1, 1], [1, 1, 8]],
[[8, 10, 2], [2, 10, 8]],
[[9, 10, 1], [1, 10, 9]]}

"for n = ", 11, "h = ", 4, "solutions are:"
{[[4, 1, 4, 1], [1, 4, 1, 4]],
[[4, 5, 5, 1], [1, 5, 5, 4]],
[[4, 9, 6, 1], [1, 6, 9, 4]],
[[7, 3, 7, 3], [3, 7, 3, 7]],
[[7, 10, 10, 3], [3, 10, 10, 7]],
[[8, 2, 8, 2], [2, 8, 2, 8]],
[[8, 6, 9, 2], [2, 9, 6, 8]],
[[8, 9, 2, 1], [1, 2, 9, 8]],
[[8, 10, 10, 2], [2, 10, 10, 8]],
[[9, 1, 9, 1], [1, 9, 1, 9]],
[[9, 10, 10, 1], [1, 10, 10, 9]],
[[10, 9, 0, 1], [1, 0, 9, 10]]}

"for n = ", 11, "h = ", 5, "solutions are:"
{[[4, 1, 0, 4, 1], [1, 4, 0, 1, 4]],
[[4, 5, 5, 5, 1], [1, 5, 5, 5, 4]],
[[4, 9, 10, 6, 1], [1, 6, 10, 9, 4]],
[[7, 3, 0, 7, 3], [3, 7, 0, 3, 7]],
[[7, 10, 10, 10, 3], [3, 10, 10, 10, 7]],
[[8, 1, 9, 1, 1], [1, 1, 9, 1, 8]],
[[8, 2, 0, 8, 2], [2, 8, 0, 2, 8]],
[[8, 6, 5, 9, 2], [2, 9, 5, 6, 8]],
[[8, 9, 10, 2, 1], [1, 2, 10, 9, 8]],
[[8, 10, 10, 10, 2], [2, 10, 10, 10, 8]],
[[9, 1, 0, 9, 1], [1, 9, 0, 1, 9]],
[[9, 10, 10, 10, 1], [1, 10, 10, 10, 9]],
[[10, 9, 10, 0, 1], [1, 0, 10, 9, 10]]}

"for n = ", 11, "h = ", 6, "solutions are:"
{[[4, 1, 0, 0, 4, 1], [1, 4, 0, 0, 1, 4]],
[[4, 1, 4, 1, 4, 1], [1, 4, 1, 4, 1, 4]],
[[4, 1, 8, 2, 4, 1], [1, 4, 2, 8, 1, 4]],
[[4, 5, 1, 4, 5, 1], [1, 5, 4, 1, 5, 4]],
[[4, 5, 5, 5, 5, 1], [1, 5, 5, 5, 5, 4]],
[[4, 5, 9, 6, 5, 1], [1, 5, 6, 9, 5, 4]],
[[4, 9, 2, 8, 6, 1], [1, 6, 8, 2, 9, 4]],
[[4, 9, 6, 9, 6, 1], [1, 6, 9, 6, 9, 4]],
[[4, 9, 10, 10, 6, 1], [1, 6, 10, 10, 9, 4]],
[[7, 3, 0, 0, 7, 3], [3, 7, 0, 0, 3, 7]],
[[7, 3, 7, 3, 7, 3], [3, 7, 3, 7, 3, 7]],
[[7, 10, 3, 7, 10, 3], [3, 10, 7, 3, 10, 7]],
[[7, 10, 10, 10, 10, 3], [3, 10, 10, 10, 10, 7]],
[[8, 1, 1, 8, 1, 1], [1, 1, 8, 1, 1, 8]],
[[8, 2, 0, 0, 8, 2], [2, 8, 0, 0, 2, 8]],
[[8, 2, 4, 1, 8, 2], [2, 8, 1, 4, 2, 8]],
[[8, 2, 8, 2, 8, 2], [2, 8, 2, 8, 2, 8]],
[[8, 6, 1, 4, 9, 2], [2, 9, 4, 1, 6, 8]],
[[8, 6, 5, 5, 9, 2], [2, 9, 5, 5, 6, 8]],
[[8, 6, 9, 6, 9, 2], [2, 9, 6, 9, 6, 8]],
[[8, 9, 10, 10, 2, 1], [1, 2, 10, 10, 9, 8]],
[[8, 10, 2, 8, 10, 2], [2, 10, 8, 2, 10, 8]],
[[8, 10, 6, 9, 10, 2], [2, 10, 9, 6, 10, 8]],
[[8, 10, 10, 10, 10, 2], [2, 10, 10, 10, 10, 8]],
[[9, 1, 0, 0, 9, 1], [1, 9, 0, 0, 1, 9]],
[[9, 1, 9, 1, 9, 1], [1, 9, 1, 9, 1, 9]],
[[9, 10, 1, 9, 10, 1], [1, 10, 9, 1, 10, 9]],
[[9, 10, 10, 10, 10, 1], [1, 10, 10, 10, 10, 9]],
[[10, 9, 10, 10, 0, 1], [1, 0, 10, 10, 9, 10]]}

"for n = ", 11, "h = ", 7, "solutions are:"
{[[4, 1, 0, 0, 0, 4, 1], [1, 4, 0, 0, 0, 1, 4]],
[[4, 1, 4, 5, 1, 4, 1], [1, 4, 1, 5, 4, 1, 4]],
[[4, 1, 8, 10, 2, 4, 1], [1, 4, 2, 10, 8, 1, 4]],
[[4, 5, 1, 0, 4, 5, 1], [1, 5, 4, 0, 1, 5, 4]],
[[4, 5, 5, 5, 5, 5, 1], [1, 5, 5, 5, 5, 5, 4]],
[[4, 5, 9, 10, 6, 5, 1], [1, 5, 6, 10, 9, 5, 4]],
[[4, 9, 2, 0, 8, 6, 1], [1, 6, 8, 0, 2, 9, 4]],
[[4, 9, 6, 5, 9, 6, 1], [1, 6, 9, 5, 6, 9, 4]],
[[4, 9, 10, 10, 10, 6, 1], [1, 6, 10, 10, 10, 9, 4]],
[[7, 3, 0, 0, 0, 7, 3], [3, 7, 0, 0, 0, 3, 7]],
[[7, 3, 7, 10, 3, 7, 3], [3, 7, 3, 10, 7, 3, 7]],
[[7, 10, 3, 0, 7, 10, 3], [3, 10, 7, 0, 3, 10, 7]],
[[7, 10, 10, 10, 10, 10, 3], [3, 10, 10, 10, 10, 10, 7]],
[[8, 1, 1, 0, 8, 1, 1], [1, 1, 8, 0, 1, 1, 8]],
[[8, 1, 9, 1, 9, 1, 1], [1, 1, 9, 1, 9, 1, 8]],
[[8, 2, 0, 0, 0, 8, 2], [2, 8, 0, 0, 0, 2, 8]],
[[8, 2, 4, 5, 1, 8, 2], [2, 8, 1, 5, 4, 2, 8]],
[[8, 2, 8, 10, 2, 8, 2], [2, 8, 2, 10, 8, 2, 8]],
[[8, 6, 1, 0, 4, 9, 2], [2, 9, 4, 0, 1, 6, 8]],
[[8, 6, 5, 5, 5, 9, 2], [2, 9, 5, 5, 5, 6, 8]],
[[8, 6, 9, 10, 6, 9, 2], [2, 9, 6, 10, 9, 6, 8]],
[[8, 9, 2, 9, 9, 2, 1], [1, 2, 9, 9, 2, 9, 8]],
[[8, 9, 10, 10, 10, 2, 1], [1, 2, 10, 10, 10, 9, 8]],
[[8, 10, 2, 0, 8, 10, 2], [2, 10, 8, 0, 2, 10, 8]],
[[8, 10, 6, 5, 9, 10, 2], [2, 10, 9, 5, 6, 10, 8]],
[[8, 10, 10, 10, 10, 10, 2], [2, 10, 10, 10, 10, 10, 8]],
[[9, 1, 0, 0, 0, 9, 1], [1, 9, 0, 0, 0, 1, 9]],
[[9, 1, 9, 10, 1, 9, 1], [1, 9, 1, 10, 9, 1, 9]],
[[9, 10, 1, 0, 9, 10, 1], [1, 10, 9, 0, 1, 10, 9]],
[[9, 10, 10, 10, 10, 10, 1], [1, 10, 10, 10, 10, 10, 9]],
[[10, 9, 10, 10, 10, 0, 1], [1, 0, 10, 10, 10, 9, 10]]}





"for n = ", 12, "h = ", 2, "solutions are:"
{}

"for n = ", 12, "h = ", 3, "solutions are:"
{}

"for n = ", 12, "h = ", 4, "solutions are:"
{[[8, 7, 3, 4], [4, 3, 7, 8]],
[[9, 8, 2, 3], [3, 2, 8, 9]],
[[10, 9, 1, 2], [2, 1, 9, 10]],
[[11, 10, 0, 1], [1, 0, 10, 11]]}

"for n = ", 12, "h = ", 5, "solutions are:"
{[[8, 7, 11, 3, 4], [4, 3, 11, 7, 8]],
[[9, 8, 11, 2, 3], [3, 2, 11, 8, 9]],
[[10, 9, 11, 1, 2], [2, 1, 11, 9, 10]],
[[11, 10, 11, 0, 1], [1, 0, 11, 10, 11]]}

"for n = ", 12, "h = ", 6, "solutions are:"
{[[8, 7, 11, 11, 3, 4], [4, 3, 11, 11, 7, 8]],
[[9, 8, 11, 11, 2, 3], [3, 2, 11, 11, 8, 9]],
[[10, 9, 11, 11, 1, 2], [2, 1, 11, 11, 9, 10]],
[[11, 10, 11, 11, 0, 1], [1, 0, 11, 11, 10, 11]]}

"for n = ", 12, "h = ", 7, "solutions are:"
{[[8, 7, 11, 11, 11, 3, 4], [4, 3, 11, 11, 11, 7, 8]],
[[9, 8, 11, 11, 11, 2, 3], [3, 2, 11, 11, 11, 8, 9]],
[[10, 9, 11, 11, 11, 1, 2], [2, 1, 11, 11, 11, 9, 10]],
[[11, 10, 11, 11, 11, 0, 1], [1, 0, 11, 11, 11, 10, 11]]}





"for n = ", 13, "h = ", 2, "solutions are:"
{[[8, 1], [1, 8]],
[[11, 1], [1, 11]]}

"for n = ", 13, "h = ", 3, "solutions are:"
{[[8, 9, 1], [1, 9, 8]],
[[11, 12, 1], [1, 12, 11]]}

"for n = ", 13, "h = ", 4, "solutions are:"
{[[8, 1, 8, 1], [1, 8, 1, 8]],
[[8, 9, 9, 1], [1, 9, 9, 8]],
[[11, 1, 11, 1], [1, 11, 1, 11]],
[[11, 12, 12, 1], [1, 12, 12, 11]],
[[12, 11, 0, 1], [1, 0, 11, 12]]}

"for n = ", 13, "h = ", 5, "solutions are:"
{[[8, 1, 0, 8, 1], [1, 8, 0, 1, 8]],
[[8, 9, 9, 9, 1], [1, 9, 9, 9, 8]],
[[11, 1, 0, 11, 1], [1, 11, 0, 1, 11]],
[[11, 12, 12, 12, 1], [1, 12, 12, 12, 11]],
[[12, 11, 12, 0, 1], [1, 0, 12, 11, 12]]}

"for n = ", 13, "h = ", 6, "solutions are:"
{[[8, 1, 0, 0, 8, 1], [1, 8, 0, 0, 1, 8]],
[[8, 1, 8, 1, 8, 1], [1, 8, 1, 8, 1, 8]],
[[8, 9, 1, 8, 9, 1], [1, 9, 8, 1, 9, 8]],
[[8, 9, 9, 9, 9, 1], [1, 9, 9, 9, 9, 8]],
[[11, 1, 0, 0, 11, 1], [1, 11, 0, 0, 1, 11]],
[[11, 1, 11, 1, 11, 1], [1, 11, 1, 11, 1, 11]],
[[11, 12, 1, 11, 12, 1], [1, 12, 11, 1, 12, 11]],
[[11, 12, 12, 12, 12, 1], [1, 12, 12, 12, 12, 11]],
[[12, 11, 12, 12, 0, 1], [1, 0, 12, 12, 11, 12]]}

"for n = ", 13, "h = ", 7, "solutions are:"
{[[8, 1, 0, 0, 0, 8, 1], [1, 8, 0, 0, 0, 1, 8]],
[[8, 1, 8, 9, 1, 8, 1], [1, 8, 1, 9, 8, 1, 8]],
[[8, 9, 1, 0, 8, 9, 1], [1, 9, 8, 0, 1, 9, 8]],
[[8, 9, 9, 9, 9, 9, 1], [1, 9, 9, 9, 9, 9, 8]],
[[11, 1, 0, 0, 0, 11, 1], [1, 11, 0, 0, 0, 1, 11]],
[[11, 1, 11, 12, 1, 11, 1], [1, 11, 1, 12, 11, 1, 11]],
[[11, 12, 1, 0, 11, 12, 1], [1, 12, 11, 0, 1, 12, 11]],
[[11, 12, 12, 12, 12, 12, 1], [1, 12, 12, 12, 12, 12, 11]],
[[12, 11, 12, 12, 12, 0, 1], [1, 0, 12, 12, 12, 11, 12]]}





"for n = ", 14, "h = ", 2, "solutions are:"
{[[9, 4], [4, 9]],
[[11, 2], [2, 11]]}

"for n = ", 14, "h = ", 3, "solutions are:"
{[[9, 13, 4], [4, 13, 9]],
[[11, 13, 2], [2, 13, 11]]}

"for n = ", 14, "h = ", 4, "solutions are:"
{[[9, 4, 9, 4], [4, 9, 4, 9]],
[[9, 13, 13, 4], [4, 13, 13, 9]],
[[11, 2, 11, 2], [2, 11, 2, 11]],
[[11, 13, 13, 2], [2, 13, 13, 11]],
[[12, 11, 1, 2], [2, 1, 11, 12]],
[[13, 12, 0, 1], [1, 0, 12, 13]]}

"for n = ", 14, "h = ", 5, "solutions are:"
{ [[5, 3, 7, 10, 1], [1, 10, 7, 3, 5]],
[[9, 4, 0, 9, 4], [4, 9, 0, 4, 9]],
[[9, 13, 13, 13, 4], [4, 13, 13, 13, 9]],
[[11, 2, 0, 11, 2], [2, 11, 0, 2, 11]],
[[11, 9, 1, 4, 1], [1, 4, 1, 9, 11]],
[[11, 13, 13, 13, 2], [2, 13, 13, 13, 11]],
[[12, 11, 13, 1, 2], [2, 1, 13, 11, 12]],
[[13, 12, 13, 0, 1], [1, 0, 13, 12, 13]]}

"for n = ", 14, "h = ", 6, "solutions are:"
{[[5, 3, 12, 8, 10, 1], [1, 10, 8, 12, 3, 5]],
[[9, 4, 0, 0, 9, 4], [4, 9, 0, 0, 4, 9]],
[[9, 4, 9, 4, 9, 4], [4, 9, 4, 9, 4, 9]],
[[9, 13, 4, 9, 13, 4], [4, 13, 9, 4, 13, 9]],
[[9, 13, 13, 13, 13, 4], [4, 13, 13, 13, 13, 9]],
[[11, 2, 0, 0, 11, 2], [2, 11, 0, 0, 2, 11]],
[[11, 2, 11, 2, 11, 2], [2, 11, 2, 11, 2, 11]],
[[11, 9, 12, 2, 4, 1], [1, 4, 2, 12, 9, 11]],
[[11, 13, 2, 11, 13, 2], [2, 13, 11, 2, 13, 11]],
[[11, 13, 13, 13, 13, 2], [2, 13, 13, 13, 13, 11]],
[[12, 11, 13, 13, 1, 2], [2, 1, 13, 13, 11, 12]],
[[13, 12, 13, 13, 0, 1], [1, 0, 13, 13, 12, 13]]}

"for n = ", 14, "h = ", 7, "solutions are:"
{[[5, 3, 12, 13, 8, 10, 1], [1, 10, 8, 13, 12, 3, 5]],
[[9, 4, 0, 0, 0, 9, 4], [4, 9, 0, 0, 0, 4, 9]],
[[9, 4, 9, 13, 4, 9, 4], [4, 9, 4, 13, 9, 4, 9]],
[[9, 13, 4, 0, 9, 13, 4], [4, 13, 9, 0, 4, 13, 9]],
[[9, 13, 13, 13, 13, 13, 4], [4, 13, 13, 13, 13, 13, 9]],
[[11, 2, 0, 0, 0, 11, 2], [2, 11, 0, 0, 0, 2, 11]],
[[11, 2, 11, 13, 2, 11, 2], [2, 11, 2, 13, 11, 2, 11]],
[[11, 9, 12, 13, 2, 4, 1], [1, 4, 2, 13, 12, 9, 11]],
[[11, 13, 2, 0, 11, 13, 2], [2, 13, 11, 0, 2, 13, 11]],
[[11, 13, 13, 13, 13, 13, 2], [2, 13, 13, 13, 13, 13, 11]],
[[12, 11, 13, 13, 13, 1, 2], [2, 1, 13, 13, 13, 11, 12]],
[[13, 12, 13, 13, 13, 0, 1], [1, 0, 13, 13, 13, 12, 13]]}





"for n = ", 15, "h = ", 2, "solutions are:"
{[[11, 3], [3, 11]],
[[13, 1], [1, 13]]}

"for n = ", 15, "h = ", 3, "solutions are:"
{[[11, 14, 3], [3, 14, 11]],
[[13, 14, 1], [1, 14, 13]]}

"for n = ", 15, "h = ", 4, "solutions are:"
{[[10, 9, 4, 5], [5, 4, 9, 10]],
[[11, 2, 0, 1], [1, 0, 2, 11]],
[[11, 3, 11, 3], [3, 11, 3, 11]],
[[11, 14, 14, 3], [3, 14, 14, 11]],
[[12, 11, 2, 3], [3, 2, 11, 12]],
[[13, 1, 13, 1], [1, 13, 1, 13]],
[[13, 14, 14, 1], [1, 14, 14, 13]],
[[14, 13, 0, 1], [1, 0, 13, 14]]}

"for n = ", 15, "h = ", 5, "solutions are:"
{[[10, 9, 14, 4, 5], [5, 4, 14, 9, 10]],
[[11, 3, 0, 11, 3], [3, 11, 0, 3, 11]],
[[11, 13, 2, 1, 1], [1, 1, 2, 13, 11]],
[[11, 14, 14, 14, 3], [3, 14, 14, 14, 11]],
[[12, 11, 14, 2, 3], [3, 2, 14, 11, 12]],
[[13, 1, 0, 13, 1], [1, 13, 0, 1, 13]],
[[13, 14, 14, 14, 1], [1, 14, 14, 14, 13]],
[[14, 13, 14, 0, 1], [1, 0, 14, 13, 14]]}

"for n = ", 15, "h = ", 6, "solutions are:"
{[[10, 9, 14, 14, 4, 5], [5, 4, 14, 14, 9, 10]],
[[11, 2, 11, 3, 0, 1], [1, 0, 3, 11, 2, 11]],
[[11, 3, 0, 0, 11, 3], [3, 11, 0, 0, 3, 11]],
[[11, 3, 11, 3, 11, 3], [3, 11, 3, 11, 3, 11]],
[[11, 13, 13, 3, 1, 1], [1, 1, 3, 13, 13, 11]],
[[11, 14, 3, 11, 14, 3], [3, 14, 11, 3, 14, 11]],
[[11, 14, 14, 14, 14, 3], [3, 14, 14, 14, 14, 11]],
[[12, 11, 14, 14, 2, 3], [3, 2, 14, 14, 11, 12]],
[[13, 1, 0, 0, 13, 1], [1, 13, 0, 0, 1, 13]],
[[13, 1, 13, 1, 13, 1], [1, 13, 1, 13, 1, 13]],
[[13, 14, 1, 13, 14, 1], [1, 14, 13, 1, 14, 13]],
[[13, 14, 14, 14, 14, 1], [1, 14, 14, 14, 14, 13]],
[[14, 13, 14, 14, 0, 1], [1, 0, 14, 14, 13, 14]]}

"for n = ", 15, "h = ", 7, "solutions are:"
{[[10, 9, 14, 14, 14, 4, 5], [5, 4, 14, 14, 14, 9, 10]],
[[11, 2, 0, 12, 2, 0, 1], [1, 0, 2, 12, 0, 2, 11]],
[[11, 3, 0, 0, 0, 11, 3], [3, 11, 0, 0, 0, 3, 11]],
[[11, 3, 11, 14, 3, 11, 3], [3, 11, 3, 14, 11, 3, 11]],
[[11, 13, 13, 14, 3, 1, 1], [1, 1, 3, 14, 13, 13, 11]],
[[11, 14, 3, 0, 11, 14, 3], [3, 14, 11, 0, 3, 14, 11]],
[[11, 14, 14, 14, 14, 14, 3], [3, 14, 14, 14, 14, 14, 11]],
[[12, 11, 14, 14, 14, 2, 3], [3, 2, 14, 14, 14, 11, 12]],
[[13, 1, 0, 0, 0, 13, 1], [1, 13, 0, 0, 0, 1, 13]],
[[13, 1, 13, 14, 1, 13, 1], [1, 13, 1, 14, 13, 1, 13]],
[[13, 14, 1, 0, 13, 14, 1], [1, 14, 13, 0, 1, 14, 13]],
[[13, 14, 14, 14, 14, 14, 1], [1, 14, 14, 14, 14, 14, 13]],
[[14, 13, 14, 14, 14, 0, 1], [1, 0, 14, 14, 14, 13, 14]]}





"for n = ", 16, "h = ", 2, "solutions are:"
{}

"for n = ", 16, "h = ", 3, "solutions are:"
{}

"for n = ", 16, "h = ", 4, "solutions are:"
{[[12, 11, 3, 4], [4, 3, 11, 12]],
[[14, 13, 1, 2], [2, 1, 13, 14]],
[[15, 14, 0, 1], [1, 0, 14, 15]]}

"for n = ", 16, "h = ", 5, "solutions are:"
{[[12, 11, 15, 3, 4], [4, 3, 15, 11, 12]],
[[14, 13, 15, 1, 2], [2, 1, 15, 13, 14]],
[[15, 14, 15, 0, 1], [1, 0, 15, 14, 15]]}

"for n = ", 16, "h = ", 6, "solutions are:"
{[[12, 11, 15, 15, 3, 4], [4, 3, 15, 15, 11, 12]],
[[14, 13, 15, 15, 1, 2], [2, 1, 15, 15, 13, 14]],
[[15, 14, 15, 15, 0, 1], [1, 0, 15, 15, 14, 15]]}

"for n = ", 16, "h = ", 7, "solutions are:"
{[[12, 11, 15, 15, 15, 3, 4], [4, 3, 15, 15, 15, 11, 12]],
[[14, 13, 15, 15, 15, 1, 2], [2, 1, 15, 15, 15, 13, 14]],
[[15, 14, 15, 15, 15, 0, 1], [1, 0, 15, 15, 15, 14, 15]]}





"for n = ", 17, "h = ", 2, "solutions are:"
{[[7, 1], [1, 7]],
[[11, 5], [5, 11]],
[[14, 2], [2, 14]],
[[15, 1], [1, 15]]}

"for n = ", 17, "h = ", 3, "solutions are:"
{[[7, 8, 1], [1, 8, 7]],
[[9, 5, 2], [2, 5, 9]],
[[11, 16, 5], [5, 16, 11]],
[[12, 3, 1], [1, 3, 12]],
[[14, 16, 2], [2, 16, 14]],
[[15, 16, 1], [1, 16, 15]]}

"for n = ", 17, "h = ", 4, "solutions are:"
{[[7, 1, 7, 1], [1, 7, 1, 7]],
[[7, 8, 8, 1], [1, 8, 8, 7]],
[[7, 15, 9, 1], [1, 9, 15, 7]],
[[9, 14, 7, 2], [2, 7, 14, 9]],
[[11, 5, 11, 5], [5, 11, 5, 11]],
[[11, 16, 16, 5], [5, 16, 16, 11]],
[[12, 15, 4, 1], [1, 4, 15, 12]],
[[14, 2, 14, 2], [2, 14, 2, 14]],
[[14, 9, 15, 2], [2, 15, 9, 14]],
[[14, 12, 5, 1], [1, 5, 12, 14]],
[[14, 16, 16, 2], [2, 16, 16, 14]],
[[15, 1, 15, 1], [1, 15, 1, 15]],
[[15, 16, 16, 1], [1, 16, 16, 15]],
[[16, 15, 0, 1], [1, 0, 15, 16]]}

"for n = ", 17, "h = ", 5, "solutions are:"
{[[7, 1, 0, 7, 1], [1, 7, 0, 1, 7]],
[[7, 8, 8, 8, 1], [1, 8, 8, 8, 7]],
[[7, 15, 16, 9, 1], [1, 9, 16, 15, 7]],
[[9, 5, 11, 5, 2], [2, 5, 11, 5, 9]],
[[9, 14, 16, 7, 2], [2, 7, 16, 14, 9]],
[[11, 5, 0, 11, 5], [5, 11, 0, 5, 11]],
[[11, 16, 16, 16, 5], [5, 16, 16, 16, 11]],
[[12, 3, 13, 3, 1], [1, 3, 13, 3, 12]],
[[12, 15, 16, 4, 1], [1, 4, 16, 15, 12]],
[[14, 2, 0, 14, 2], [2, 14, 0, 2, 14]],
[[14, 9, 8, 15, 2], [2, 15, 8, 9, 14]],
[[14, 16, 16, 16, 2], [2, 16, 16, 16, 14]],
[[15, 1, 0, 15, 1], [1, 15, 0, 1, 15]],
[[15, 16, 16, 16, 1], [1, 16, 16, 16, 15]],
[[16, 15, 16, 0, 1], [1, 0, 16, 15, 16]]}

"for n = ", 17, "h = ", 6, "solutions are:"
{[[7, 1, 0, 0, 7, 1], [1, 7, 0, 0, 1, 7]],
[[7, 1, 7, 1, 7, 1], [1, 7, 1, 7, 1, 7]],
[[7, 1, 14, 2, 7, 1], [1, 7, 2, 14, 1, 7]],
[[7, 8, 1, 7, 8, 1], [1, 8, 7, 1, 8, 7]],
[[7, 8, 8, 8, 8, 1], [1, 8, 8, 8, 8, 7]],
[[7, 8, 15, 9, 8, 1], [1, 8, 9, 15, 8, 7]],
[[7, 15, 2, 14, 9, 1], [1, 9, 14, 2, 15, 7]],
[[7, 15, 9, 15, 9, 1], [1, 9, 15, 9, 15, 7]],
[[7, 15, 16, 16, 9, 1], [1, 9, 16, 16, 15, 7]],
[[9, 5, 2, 9, 5, 2], [2, 5, 9, 2, 5, 9]],
[[9, 14, 16, 16, 7, 2], [2, 7, 16, 16, 14, 9]],
[[11, 5, 0, 0, 11, 5], [5, 11, 0, 0, 5, 11]],
[[11, 5, 11, 5, 11, 5], [5, 11, 5, 11, 5, 11]],
[[11, 16, 5, 11, 16, 5], [5, 16, 11, 5, 16, 11]],
[[11, 16, 16, 16, 16, 5], [5, 16, 16, 16, 16, 11]],
[[12, 3, 1, 12, 3, 1], [1, 3, 12, 1, 3, 12]],
[[12, 15, 16, 16, 4, 1], [1, 4, 16, 16, 15, 12]],
[[14, 2, 0, 0, 14, 2], [2, 14, 0, 0, 2, 14]],
[[14, 2, 7, 1, 14, 2], [2, 14, 1, 7, 2, 14]],
[[14, 2, 14, 2, 14, 2], [2, 14, 2, 14, 2, 14]],
[[14, 9, 1, 7, 15, 2], [2, 15, 7, 1, 9, 14]],
[[14, 9, 8, 8, 15, 2], [2, 15, 8, 8, 9, 14]],
[[14, 9, 15, 9, 15, 2], [2, 15, 9, 15, 9, 14]],
[[14, 16, 2, 14, 16, 2], [2, 16, 14, 2, 16, 14]],
[[14, 16, 9, 15, 16, 2], [2, 16, 15, 9, 16, 14]],
[[14, 16, 16, 16, 16, 2], [2, 16, 16, 16, 16, 14]],
[[15, 1, 0, 0, 15, 1], [1, 15, 0, 0, 1, 15]],
[[15, 1, 15, 1, 15, 1], [1, 15, 1, 15, 1, 15]],
[[15, 16, 1, 15, 16, 1], [1, 16, 15, 1, 16, 15]],
[[15, 16, 16, 16, 16, 1], [1, 16, 16, 16, 16, 15]],
[[16, 15, 16, 16, 0, 1], [1, 0, 16, 16, 15, 16]]}

"for n = ", 17, "h = ", 7, "solutions are:"
{[[7, 1, 0, 0, 0, 7, 1], [1, 7, 0, 0, 0, 1, 7]],
[[7, 1, 7, 8, 1, 7, 1], [1, 7, 1, 8, 7, 1, 7]],
[[7, 1, 14, 16, 2, 7, 1], [1, 7, 2, 16, 14, 1, 7]],
[[7, 8, 1, 0, 7, 8, 1], [1, 8, 7, 0, 1, 8, 7]],
[[7, 8, 8, 8, 8, 8, 1], [1, 8, 8, 8, 8, 8, 7]],
[[7, 8, 15, 16, 9, 8, 1], [1, 8, 9, 16, 15, 8, 7]],
[[7, 15, 2, 0, 14, 9, 1], [1, 9, 14, 0, 2, 15, 7]],
[[7, 15, 9, 8, 15, 9, 1], [1, 9, 15, 8, 9, 15, 7]],
[[7, 15, 16, 16, 16, 9, 1], [1, 9, 16, 16, 16, 15, 7]],
[[9, 5, 2, 0, 9, 5, 2], [2, 5, 9, 0, 2, 5, 9]],
[[9, 5, 11, 5, 11, 5, 2], [2, 5, 11, 5, 11, 5, 9]],
[[9, 14, 7, 11, 14, 7, 2], [2, 7, 14, 11, 7, 14, 9]],
[[9, 14, 16, 16, 16, 7, 2], [2, 7, 16, 16, 16, 14, 9]],
[[11, 5, 0, 0, 0, 11, 5], [5, 11, 0, 0, 0, 5, 11]],
[[11, 5, 11, 16, 5, 11, 5], [5, 11, 5, 16, 11, 5, 11]],
[[11, 16, 5, 0, 11, 16, 5], [5, 16, 11, 0, 5, 16, 11]],
[[11, 16, 16, 16, 16, 16, 5], [5, 16, 16, 16, 16, 16, 11]],
[[12, 3, 1, 0, 12, 3, 1], [1, 3, 12, 0, 1, 3, 12]],
[[12, 3, 13, 3, 13, 3, 1], [1, 3, 13, 3, 13, 3, 12]],
[[12, 15, 4, 13, 15, 4, 1], [1, 4, 15, 13, 4, 15, 12]],
[[12, 15, 16, 16, 16, 4, 1], [1, 4, 16, 16, 16, 15, 12]],
[[14, 2, 0, 0, 0, 14, 2], [2, 14, 0, 0, 0, 2, 14]],
[[14, 2, 7, 8, 1, 14, 2], [2, 14, 1, 8, 7, 2, 14]],
[[14, 2, 14, 16, 2, 14, 2], [2, 14, 2, 16, 14, 2, 14]],
[[14, 9, 1, 0, 7, 15, 2], [2, 15, 7, 0, 1, 9, 14]],
[[14, 9, 8, 8, 8, 15, 2], [2, 15, 8, 8, 8, 9, 14]],
[[14, 9, 15, 16, 9, 15, 2], [2, 15, 9, 16, 15, 9, 14]],
[[14, 12, 5, 15, 12, 5, 1], [1, 5, 12, 15, 5, 12, 14]],
[[14, 16, 2, 0, 14, 16, 2], [2, 16, 14, 0, 2, 16, 14]],
[[14, 16, 9, 8, 15, 16, 2], [2, 16, 15, 8, 9, 16, 14]],
[[14, 16, 16, 16, 16, 16, 2], [2, 16, 16, 16, 16, 16, 14]],
[[15, 1, 0, 0, 0, 15, 1], [1, 15, 0, 0, 0, 1, 15]],
[[15, 1, 15, 16, 1, 15, 1], [1, 15, 1, 16, 15, 1, 15]],
[[15, 16, 1, 0, 15, 16, 1], [1, 16, 15, 0, 1, 16, 15]],
[[15, 16, 16, 16, 16, 16, 1], [1, 16, 16, 16, 16, 16, 15]],
[[16, 15, 16, 16, 16, 0, 1], [1, 0, 16, 16, 16, 15, 16]]}





"for n = ", 18, "h = ", 2, "solutions are:"
{}

"for n = ", 18, "h = ", 3, "solutions are:"
{}

"for n = ", 18, "h = ", 4, "solutions are:"
{[[12, 11, 5, 6], [6, 5, 11, 12]],
[[15, 14, 2, 3], [3, 2, 14, 15]],
[[16, 15, 1, 2], [2, 1, 15, 16]],
[[17, 16, 0, 1], [1, 0, 16, 17]]}

"for n = ", 18, "h = ", 5, "solutions are:"
{[[12, 11, 17, 5, 6], [6, 5, 17, 11, 12]],
[[15, 14, 17, 2, 3], [3, 2, 17, 14, 15]],
[[16, 15, 17, 1, 2], [2, 1, 17, 15, 16]],
[[17, 16, 17, 0, 1], [1, 0, 17, 16, 17]]}

"for n = ", 18, "h = ", 6, "solutions are:"
{[[12, 11, 17, 17, 5, 6], [6, 5, 17, 17, 11, 12]],
[[13, 12, 5, 3, 17, 1], [1, 17, 3, 5, 12, 13]],
[[15, 14, 17, 17, 2, 3], [3, 2, 17, 17, 14, 15]],
[[16, 15, 17, 17, 1, 2], [2, 1, 17, 17, 15, 16]],
[[17, 16, 17, 17, 0, 1], [1, 0, 17, 17, 16, 17]]}

"for n = ", 18, "h = ", 7, "solutions are:"
{[[12, 11, 17, 17, 17, 5, 6], [6, 5, 17, 17, 17, 11, 12]],
[[15, 14, 17, 17, 17, 2, 3], [3, 2, 17, 17, 17, 14, 15]],
[[16, 15, 17, 17, 17, 1, 2], [2, 1, 17, 17, 17, 15, 16]],
[[17, 16, 17, 17, 17, 0, 1], [1, 0, 17, 17, 17, 16, 17]]}





"for n = ", 19, "h = ", 2, "solutions are:"
{[[5, 1], [1, 5]],
[[7, 2], [2, 7]],
[[10, 2], [2, 10]],
[[11, 1], [1, 11]],
[[14, 4], [4, 14]],
[[15, 3], [3, 15]],
[[17, 1], [1, 17]]}

"for n = ", 19, "h = ", 3, "solutions are:"
{[[5, 6, 1], [1, 6, 5]],
[[7, 9, 2], [2, 9, 7]],
[[10, 12, 2], [2, 12, 10]],
[[11, 12, 1], [1, 12, 11]],
[[13, 3, 2], [2, 3, 13]],
[[14, 18, 4], [4, 18, 14]],
[[15, 18, 3], [3, 18, 15]],
[[17, 18, 1], [1, 18, 17]]}

"for n = ", 19, "h = ", 4, "solutions are:"
{[[5, 1, 5, 1], [1, 5, 1, 5]],
[[5, 6, 6, 1], [1, 6, 6, 5]],
[[5, 11, 7, 1], [1, 7, 11, 5]],
[[5, 16, 8, 1], [1, 8, 16, 5]],
[[7, 2, 7, 2], [2, 7, 2, 7]],
[[7, 9, 9, 2], [2, 9, 9, 7]],
[[7, 16, 11, 2], [2, 11, 16, 7]],
[[10, 2, 10, 2], [2, 10, 2, 10]],
[[10, 7, 11, 2], [2, 11, 7, 10]],
[[10, 12, 12, 2], [2, 12, 12, 10]],
[[10, 17, 13, 2], [2, 13, 17, 10]],
[[11, 1, 11, 1], [1, 11, 1, 11]],
[[11, 12, 12, 1], [1, 12, 12, 11]],
[[13, 16, 5, 2], [2, 5, 16, 13]],
[[14, 4, 14, 4], [4, 14, 4, 14]],
[[14, 11, 16, 4], [4, 16, 11, 14]],
[[14, 18, 18, 4], [4, 18, 18, 14]],
[[15, 3, 15, 3], [3, 15, 3, 15]],
[[15, 8, 16, 3], [3, 16, 8, 15]],
[[15, 13, 17, 3], [3, 17, 13, 15]],
[[15, 18, 18, 3], [3, 18, 18, 15]],
[[17, 1, 17, 1], [1, 17, 1, 17]],
[[17, 18, 18, 1], [1, 18, 18, 17]],
[[18, 17, 0, 1], [1, 0, 17, 18]]}

"for n = ", 19, "h = ", 5, "solutions are:"
{[[5, 1, 0, 5, 1], [1, 5, 0, 1, 5]],
[[5, 6, 6, 6, 1], [1, 6, 6, 6, 5]],
[[5, 11, 12, 7, 1], [1, 7, 12, 11, 5]],
[[5, 16, 18, 8, 1], [1, 8, 18, 16, 5]],
[[7, 2, 0, 7, 2], [2, 7, 0, 2, 7]],
[[7, 9, 9, 9, 2], [2, 9, 9, 9, 7]],
[[7, 16, 18, 11, 2], [2, 11, 18, 16, 7]],
[[10, 2, 0, 10, 2], [2, 10, 0, 2, 10]],
[[10, 7, 6, 11, 2], [2, 11, 6, 7, 10]],
[[10, 12, 12, 12, 2], [2, 12, 12, 12, 10]],
[[10, 17, 18, 13, 2], [2, 13, 18, 17, 10]],
[[11, 1, 0, 11, 1], [1, 11, 0, 1, 11]],
[[11, 12, 12, 12, 1], [1, 12, 12, 12, 11]],
[[13, 3, 15, 3, 2], [2, 3, 15, 3, 13]],
[[13, 16, 18, 5, 2], [2, 5, 18, 16, 13]],
[[14, 4, 0, 14, 4], [4, 14, 0, 4, 14]],
[[14, 11, 9, 16, 4], [4, 16, 9, 11, 14]],
[[14, 18, 18, 18, 4], [4, 18, 18, 18, 14]],
[[15, 3, 0, 15, 3], [3, 15, 0, 3, 15]],
[[15, 8, 6, 16, 3], [3, 16, 6, 8, 15]],
[[15, 13, 12, 17, 3], [3, 17, 12, 13, 15]],
[[15, 18, 18, 18, 3], [3, 18, 18, 18, 15]],
[[17, 1, 0, 17, 1], [1, 17, 0, 1, 17]],
[[17, 18, 18, 18, 1], [1, 18, 18, 18, 17]],
[[18, 17, 18, 0, 1], [1, 0, 18, 17, 18]]}

"for n = ", 19, "h = ", 6, "solutions are:"
{[[5, 1, 0, 0, 5, 1], [1, 5, 0, 0, 1, 5]],
[[5, 1, 5, 1, 5, 1], [1, 5, 1, 5, 1, 5]],
[[5, 1, 10, 2, 5, 1], [1, 5, 2, 10, 1, 5]],
[[5, 1, 15, 3, 5, 1], [1, 5, 3, 15, 1, 5]],
[[5, 6, 1, 5, 6, 1], [1, 6, 5, 1, 6, 5]],
[[5, 6, 6, 6, 6, 1], [1, 6, 6, 6, 6, 5]],
[[5, 6, 11, 7, 6, 1], [1, 6, 7, 11, 6, 5]],
[[5, 6, 16, 8, 6, 1], [1, 6, 8, 16, 6, 5]],
[[5, 11, 2, 10, 7, 1], [1, 7, 10, 2, 11, 5]],
[[5, 11, 7, 11, 7, 1], [1, 7, 11, 7, 11, 5]],
[[5, 11, 12, 12, 7, 1], [1, 7, 12, 12, 11, 5]],
[[5, 11, 17, 13, 7, 1], [1, 7, 13, 17, 11, 5]],
[[5, 16, 3, 15, 8, 1], [1, 8, 15, 3, 16, 5]],
[[5, 16, 8, 16, 8, 1], [1, 8, 16, 8, 16, 5]],
[[5, 16, 13, 17, 8, 1], [1, 8, 17, 13, 16, 5]],
[[5, 16, 18, 18, 8, 1], [1, 8, 18, 18, 16, 5]],
[[7, 2, 0, 0, 7, 2], [2, 7, 0, 0, 2, 7]],
[[7, 2, 7, 2, 7, 2], [2, 7, 2, 7, 2, 7]],
[[7, 2, 14, 4, 7, 2], [2, 7, 4, 14, 2, 7]],
[[7, 9, 2, 7, 9, 2], [2, 9, 7, 2, 9, 7]],
[[7, 9, 9, 9, 9, 2], [2, 9, 9, 9, 9, 7]],
[[7, 9, 16, 11, 9, 2], [2, 9, 11, 16, 9, 7]],
[[7, 16, 4, 14, 11, 2], [2, 11, 14, 4, 16, 7]],
[[7, 16, 11, 16, 11, 2], [2, 11, 16, 11, 16, 7]],
[[7, 16, 18, 18, 11, 2], [2, 11, 18, 18, 16, 7]],
[[10, 2, 0, 0, 10, 2], [2, 10, 0, 0, 2, 10]],
[[10, 2, 5, 1, 10, 2], [2, 10, 1, 5, 2, 10]],
[[10, 2, 10, 2, 10, 2], [2, 10, 2, 10, 2, 10]],
[[10, 2, 15, 3, 10, 2], [2, 10, 3, 15, 2, 10]],
[[10, 7, 1, 5, 11, 2], [2, 11, 5, 1, 7, 10]],
[[10, 7, 6, 6, 11, 2], [2, 11, 6, 6, 7, 10]],
[[10, 7, 11, 7, 11, 2], [2, 11, 7, 11, 7, 10]],
[[10, 7, 16, 8, 11, 2], [2, 11, 8, 16, 7, 10]],
[[10, 12, 2, 10, 12, 2], [2, 12, 10, 2, 12, 10]],
[[10, 12, 7, 11, 12, 2], [2, 12, 11, 7, 12, 10]],
[[10, 12, 12, 12, 12, 2], [2, 12, 12, 12, 12, 10]],
[[10, 12, 17, 13, 12, 2], [2, 12, 13, 17, 12, 10]],
[[10, 17, 3, 15, 13, 2], [2, 13, 15, 3, 17, 10]],
[[10, 17, 8, 16, 13, 2], [2, 13, 16, 8, 17, 10]],
[[10, 17, 13, 17, 13, 2], [2, 13, 17, 13, 17, 10]],
[[10, 17, 18, 18, 13, 2], [2, 13, 18, 18, 17, 10]],
[[11, 1, 0, 0, 11, 1], [1, 11, 0, 0, 1, 11]],
[[11, 1, 11, 1, 11, 1], [1, 11, 1, 11, 1, 11]],
[[11, 12, 1, 11, 12, 1], [1, 12, 11, 1, 12, 11]],
[[11, 12, 12, 12, 12, 1], [1, 12, 12, 12, 12, 11]],
[[13, 3, 2, 13, 3, 2], [2, 3, 13, 2, 3, 13]],
[[13, 16, 18, 18, 5, 2], [2, 5, 18, 18, 16, 13]],
[[14, 4, 0, 0, 14, 4], [4, 14, 0, 0, 4, 14]],
[[14, 4, 7, 2, 14, 4], [4, 14, 2, 7, 4, 14]],
[[14, 4, 14, 4, 14, 4], [4, 14, 4, 14, 4, 14]],
[[14, 11, 2, 7, 16, 4], [4, 16, 7, 2, 11, 14]],
[[14, 11, 9, 9, 16, 4], [4, 16, 9, 9, 11, 14]],
[[14, 11, 16, 11, 16, 4], [4, 16, 11, 16, 11, 14]],
[[14, 18, 4, 14, 18, 4], [4, 18, 14, 4, 18, 14]],
[[14, 18, 11, 16, 18, 4], [4, 18, 16, 11, 18, 14]],
[[14, 18, 18, 18, 18, 4], [4, 18, 18, 18, 18, 14]],
[[15, 3, 0, 0, 15, 3], [3, 15, 0, 0, 3, 15]],
[[15, 3, 5, 1, 15, 3], [3, 15, 1, 5, 3, 15]],
[[15, 3, 10, 2, 15, 3], [3, 15, 2, 10, 3, 15]],
[[15, 3, 15, 3, 15, 3], [3, 15, 3, 15, 3, 15]],
[[15, 8, 1, 5, 16, 3], [3, 16, 5, 1, 8, 15]],
[[15, 8, 6, 6, 16, 3], [3, 16, 6, 6, 8, 15]],
[[15, 8, 11, 7, 16, 3], [3, 16, 7, 11, 8, 15]],
[[15, 8, 16, 8, 16, 3], [3, 16, 8, 16, 8, 15]],
[[15, 13, 2, 10, 17, 3], [3, 17, 10, 2, 13, 15]],
[[15, 13, 7, 11, 17, 3], [3, 17, 11, 7, 13, 15]],
[[15, 13, 12, 12, 17, 3], [3, 17, 12, 12, 13, 15]],
[[15, 13, 17, 13, 17, 3], [3, 17, 13, 17, 13, 15]],
[[15, 17, 8, 11, 2, 1], [1, 2, 11, 8, 17, 15]],
[[15, 18, 3, 15, 18, 3], [3, 18, 15, 3, 18, 15]],
[[15, 18, 8, 16, 18, 3], [3, 18, 16, 8, 18, 15]],
[[15, 18, 13, 17, 18, 3], [3, 18, 17, 13, 18, 15]],
[[15, 18, 18, 18, 18, 3], [3, 18, 18, 18, 18, 15]],
[[17, 1, 0, 0, 17, 1], [1, 17, 0, 0, 1, 17]],
[[17, 1, 17, 1, 17, 1], [1, 17, 1, 17, 1, 17]],
[[17, 18, 1, 17, 18, 1], [1, 18, 17, 1, 18, 17]],
[[17, 18, 18, 18, 18, 1], [1, 18, 18, 18, 18, 17]],
[[18, 17, 18, 18, 0, 1], [1, 0, 18, 18, 17, 18]]}





"for n = ", 20, "h = ", 2, "solutions are:"
{[[13, 6], [6, 13]],
[[17, 2], [2, 17]]}

"for n = ", 20, "h = ", 3, "solutions are:"
{[[13, 19, 6], [6, 19, 13]],
[[17, 19, 2], [2, 19, 17]]}

"for n = ", 20, "h = ", 4, "solutions are:"
{[[13, 6, 13, 6], [6, 13, 6, 13]], [[16, 15, 3, 4], [4, 3, 15, 16]],
[[15, 14, 4, 5], [5, 4, 14, 15]], [[19, 18, 0, 1], [1, 0, 18, 19]],
[[17, 2, 17, 2], [2, 17, 2, 17]], [[13, 19, 19, 6], [6, 19, 19, 13]],
[[18, 17, 1, 2], [2, 1, 17, 18]], [[17, 19, 19, 2], [2, 19, 19, 17]]}

"for n = ", 20, "h = ", 5, "solutions are:"
{[[13, 6, 0, 13, 6], [6, 13, 0, 6, 13]],
[[13, 19, 19, 19, 6], [6, 19, 19, 19, 13]],
[[15, 14, 19, 4, 5], [5, 4, 19, 14, 15]],
[[16, 15, 19, 3, 4], [4, 3, 19, 15, 16]],
[[17, 2, 0, 17, 2], [2, 17, 0, 2, 17]],
[[17, 12, 1, 7, 1], [1, 7, 1, 12, 17]],
[[17, 19, 19, 19, 2], [2, 19, 19, 19, 17]],
[[18, 17, 19, 1, 2], [2, 1, 19, 17, 18]],
[[19, 18, 19, 0, 1], [1, 0, 19, 18, 19]]}





"for n = ", 21, "h = ", 2, "solutions are:"
{[[13, 2], [2, 13]],
[[19, 1], [1, 19]]}

"for n = ", 21, "h = ", 3, "solutions are:"
{[[13, 15, 2], [2, 15, 13]],
[[19, 20, 1], [1, 20, 19]]}

"for n = ", 21, "h = ", 4, "solutions are:"
{[[13, 1, 0, 1], [1, 0, 1, 13]], [[19, 1, 19, 1], [1, 19, 1, 19]],
[[13, 2, 13, 2], [2, 13, 2, 13]], [[18, 17, 2, 3], [3, 2, 17, 18]],
[[13, 15, 15, 2], [2, 15, 15, 13]], [[20, 19, 0, 1], [1, 0, 19, 20]],
[[19, 20, 20, 1], [1, 20, 20, 19]], [[14, 13, 6, 7], [7, 6, 13, 14]]}

"for n = ", 21, "h = ", 5, "solutions are:"
{[[13, 2, 0, 13, 2], [2, 13, 0, 2, 13]],
[[13, 14, 1, 1, 1], [1, 1, 1, 14, 13]],
[[13, 15, 15, 15, 2], [2, 15, 15, 15, 13]],
[[14, 13, 20, 6, 7], [7, 6, 20, 13, 14]],
[[18, 17, 20, 2, 3], [3, 2, 20, 17, 18]],
[[19, 1, 0, 19, 1], [1, 19, 0, 1, 19]],
[[19, 20, 20, 20, 1], [1, 20, 20, 20, 19]],
[[20, 19, 20, 0, 1], [1, 0, 20, 19, 20]]}





"for n = ", 22, "h = ", 2, "solutions are:"
{}

"for n = ", 22, "h = ", 3, "solutions are:"
{}

"for n = ", 22, "h = ", 4, "solutions are:"
{[[20, 19, 1, 2], [2, 1, 19, 20]],
[[21, 20, 0, 1], [1, 0, 20, 21]]}

"for n = ", 22, "h = ", 5, "solutions are:"
{[[8, 5, 11, 16, 2], [2, 16, 11, 5, 8]],
[[16, 13, 3, 8, 2], [2, 8, 3, 13, 16]],
[[20, 19, 21, 1, 2], [2, 1, 21, 19, 20]],
[[21, 20, 21, 0, 1], [1, 0, 21, 20, 21]]}





"for n = ", 23, "h = ", 2, "solutions are:"
{[[10, 1], [1, 10]],
[[15, 7], [7, 15]],
[[17, 5], [5, 17]],
[[19, 3], [3, 19]],
[[20, 2], [2, 20]],
[[21, 1], [1, 21]]}

"for n = ", 23, "h = ", 3, "solutions are:"
{[[6, 15, 1], [1, 15, 6]],
[[10, 11, 1], [1, 11, 10]],
[[15, 22, 7], [7, 22, 15]],
[[16, 5, 1], [1, 5, 16]],
[[17, 22, 5], [5, 22, 17]],
[[19, 2, 1], [1, 2, 19]],
[[19, 22, 3], [3, 22, 19]],
[[20, 22, 2], [2, 22, 20]],
[[21, 22, 1], [1, 22, 21]]}

"for n = ", 23, "h = ", 4, "solutions are:"
{[[6, 21, 16, 1], [1, 16, 21, 6]],
[[10, 1, 10, 1], [1, 10, 1, 10]],
[[10, 11, 11, 1], [1, 11, 11, 10]],
[[10, 21, 12, 1], [1, 12, 21, 10]],
[[15, 7, 15, 7], [7, 15, 7, 15]],
[[15, 22, 22, 7], [7, 22, 22, 15]],
[[16, 21, 6, 1], [1, 6, 21, 16]],
[[17, 5, 17, 5], [5, 17, 5, 17]],
[[17, 22, 22, 5], [5, 22, 22, 17]],
[[19, 3, 19, 3], [3, 19, 3, 19]],
[[19, 21, 3, 1], [1, 3, 21, 19]],
[[19, 22, 22, 3], [3, 22, 22, 19]],
[[20, 2, 20, 2], [2, 20, 2, 20]],
[[20, 12, 21, 2], [2, 21, 12, 20]],
[[20, 15, 8, 1], [1, 8, 15, 20]],
[[20, 22, 22, 2], [2, 22, 22, 20]],
[[21, 1, 21, 1], [1, 21, 1, 21]],
[[21, 22, 22, 1], [1, 22, 22, 21]],
[[22, 21, 0, 1], [1, 0, 21, 22]]}

"for n = ", 23, "h = ", 5, "solutions are:"
{[[6, 15, 7, 15, 1], [1, 15, 7, 15, 6]],
[[6, 21, 22, 16, 1], [1, 16, 22, 21, 6]],
[[10, 1, 0, 10, 1], [1, 10, 0, 1, 10]],
[[10, 11, 11, 11, 1], [1, 11, 11, 11, 10]],
[[10, 21, 22, 12, 1], [1, 12, 22, 21, 10]],
[[15, 7, 0, 15, 7], [7, 15, 0, 7, 15]],
[[15, 22, 22, 22, 7], [7, 22, 22, 22, 15]],
[[16, 5, 17, 5, 1], [1, 5, 17, 5, 16]],
[[16, 21, 22, 6, 1], [1, 6, 22, 21, 16]],
[[17, 5, 0, 17, 5], [5, 17, 0, 5, 17]],
[[17, 22, 22, 22, 5], [5, 22, 22, 22, 17]],
[[19, 2, 20, 2, 1], [1, 2, 20, 2, 19]],
[[19, 3, 0, 19, 3], [3, 19, 0, 3, 19]],
[[19, 21, 22, 3, 1], [1, 3, 22, 21, 19]],
[[19, 22, 22, 22, 3], [3, 22, 22, 22, 19]],
[[20, 2, 0, 20, 2], [2, 20, 0, 2, 20]],
[[20, 12, 11, 21, 2], [2, 21, 11, 12, 20]],
[[20, 22, 22, 22, 2], [2, 22, 22, 22, 20]],
[[21, 1, 0, 21, 1], [1, 21, 0, 1, 21]],
[[21, 22, 22, 22, 1], [1, 22, 22, 22, 21]],
[[22, 21, 22, 0, 1], [1, 0, 22, 21, 22]]}





"for n = ", 24, "h = ", 2, "solutions are:"
{[[19, 4], [4, 19]]}

"for n = ", 24, "h = ", 3, "solutions are:"
{[[19, 23, 4], [4, 23, 19]]}
"for n = ", 24, "h = ", 4, "solutions are:"
{[[16, 15, 7, 8], [8, 7, 15, 16]],
[[18, 17, 5, 6], [6, 5, 17, 18]],
[[19, 3, 0, 1], [1, 0, 3, 19]],
[[19, 4, 19, 4], [4, 19, 4, 19]],
[[19, 23, 23, 4], [4, 23, 23, 19]],
[[20, 19, 3, 4], [4, 3, 19, 20]],
[[21, 20, 2, 3], [3, 2, 20, 21]],
[[22, 21, 1, 2], [2, 1, 21, 22]],
[[23, 22, 0, 1], [1, 0, 22, 23]]}

"for n = ", 24, "h = ", 5, "solutions are:"
{[[16, 15, 23, 7, 8], [8, 7, 23, 15, 16]],
[[18, 17, 23, 5, 6], [6, 5, 23, 17, 18]],
[[19, 4, 0, 19, 4], [4, 19, 0, 4, 19]],
[[19, 22, 3, 1, 1], [1, 1, 3, 22, 19]],
[[19, 23, 23, 23, 4], [4, 23, 23, 23, 19]],
[[20, 19, 23, 3, 4], [4, 3, 23, 19, 20]],
[[21, 20, 23, 2, 3], [3, 2, 23, 20, 21]],
[[22, 21, 23, 1, 2], [2, 1, 23, 21, 22]],
[[23, 22, 23, 0, 1], [1, 0, 23, 22, 23]]}





"for n = ", 25, "h = ", 2, "solutions are:"
{[[14, 1], [1, 14]],
[[23, 1], [1, 23]]}

"for n = ", 25, "h = ", 3, "solutions are:"
{[[14, 15, 1], [1, 15, 14]],
[[23, 24, 1], [1, 24, 23]]}

"for n = ", 25, "h = ", 4, "solutions are:"
{[[14, 1, 14, 1], [1, 14, 1, 14]],
[[14, 15, 15, 1], [1, 15, 15, 14]],
[[20, 19, 4, 5], [5, 4, 19, 20]],
[[23, 1, 23, 1], [1, 23, 1, 23]],
[[23, 24, 24, 1], [1, 24, 24, 23]],
[[24, 23, 0, 1], [1, 0, 23, 24]]}

"for n = ", 25, "h = ", 5, "solutions are:"
{[[14, 1, 0, 14, 1], [1, 14, 0, 1, 14]],
[[14, 15, 15, 15, 1], [1, 15, 15, 15, 14]],
[[20, 19, 24, 4, 5], [5, 4, 24, 19, 20]],
[[23, 1, 0, 23, 1], [1, 23, 0, 1, 23]],
[[23, 24, 24, 24, 1], [1, 24, 24, 24, 23]],
[[24, 23, 24, 0, 1], [1, 0, 24, 23, 24]]}





"for n = ", 26, "h = ", 2, "solutions are:"
{[[17, 8], [8, 17]],
[[19, 1], [1, 19]],
[[23, 2], [2, 23]]}

"for n = ", 26, "h = ", 3, "solutions are:"
{[[17, 25, 8], [8, 25, 17]],
[[19, 20, 1], [1, 20, 19]],
[[21, 2, 2], [2, 2, 21]],
[[23, 25, 2], [2, 25, 23]]}

"for n = ", 26, "h = ", 4, "solutions are:"
{[[17, 8, 17, 8], [8, 17, 8, 17]],
[[17, 25, 25, 8], [8, 25, 25, 17]],
[[19, 1, 19, 1], [1, 19, 1, 19]],
[[19, 20, 20, 1], [1, 20, 20, 19]],
[[21, 23, 4, 2], [2, 4, 23, 21]],
[[23, 2, 23, 2], [2, 23, 2, 23]],
[[23, 25, 25, 2], [2, 25, 25, 23]],
[[24, 23, 1, 2], [2, 1, 23, 24]],
[[25, 24, 0, 1], [1, 0, 24, 25]]}

"for n = ", 26, "h = ", 5, "solutions are:"
{[[17, 8, 0, 17, 8], [8, 17, 0, 8, 17]],
[[17, 25, 25, 25, 8], [8, 25, 25, 25, 17]],
[[19, 1, 0, 19, 1], [1, 19, 0, 1, 19]],
[[19, 20, 20, 20, 1], [1, 20, 20, 20, 19]],
[[21, 2, 23, 2, 2], [2, 2, 23, 2, 21]],
[[21, 23, 25, 4, 2], [2, 4, 25, 23, 21]],
[[23, 2, 0, 23, 2], [2, 23, 0, 2, 23]],
[[23, 15, 1, 10, 1], [1, 10, 1, 15, 23]],
[[23, 25, 25, 25, 2], [2, 25, 25, 25, 23]],
[[24, 23, 25, 1, 2], [2, 1, 25, 23, 24]],
[[25, 24, 25, 0, 1], [1, 0, 25, 24, 25]]}





"for n = ", 27, "h = ", 2, "solutions are:"
{[[10, 3], [3, 10]],
[[20, 6], [6, 20]],
[[23, 3], [3, 23]],
[[25, 1], [1, 25]]}

"for n = ", 27, "h = ", 3, "solutions are:"
{[[10, 13, 3], [3, 13, 10]],
[[20, 26, 6], [6, 26, 20]],
[[23, 26, 3], [3, 26, 23]],
[[25, 26, 1], [1, 26, 25]]}

"for n = ", 27, "h = ", 4, "solutions are:"
{[[10, 3, 10, 3], [3, 10, 3, 10]],
[[10, 13, 13, 3], [3, 13, 13, 10]],
[[10, 23, 16, 3], [3, 16, 23, 10]],
[[18, 17, 8, 9], [9, 8, 17, 18]],
[[20, 6, 20, 6], [6, 20, 6, 20]],
[[20, 16, 23, 6], [6, 23, 16, 20]],
[[20, 26, 26, 6], [6, 26, 26, 20]],
[[23, 3, 23, 3], [3, 23, 3, 23]],
[[23, 26, 26, 3], [3, 26, 26, 23]],
[[24, 23, 2, 3], [3, 2, 23, 24]],
[[25, 1, 25, 1], [1, 25, 1, 25]],
[[25, 26, 26, 1], [1, 26, 26, 25]],
[[26, 25, 0, 1], [1, 0, 25, 26]]}

"for n = ", 27, "h = ", 5, "solutions are:"
{[[7, 5, 18, 21, 1], [1, 21, 18, 5, 7]],
[[10, 3, 0, 10, 3], [3, 10, 0, 3, 10]],
[[10, 13, 13, 13, 3], [3, 13, 13, 13, 10]],
[[10, 23, 26, 16, 3], [3, 16, 26, 23, 10]],
[[18, 17, 26, 8, 9], [9, 8, 26, 17, 18]],
[[20, 6, 0, 20, 6], [6, 20, 0, 6, 20]],
[[20, 16, 13, 23, 6], [6, 23, 13, 16, 20]],
[[20, 26, 26, 26, 6], [6, 26, 26, 26, 20]],
[[23, 3, 0, 23, 3], [3, 23, 0, 3, 23]],
[[23, 21, 2, 5, 1], [1, 5, 2, 21, 23]],
[[23, 26, 26, 26, 3], [3, 26, 26, 26, 23]],
[[24, 23, 26, 2, 3], [3, 2, 26, 23, 24]],
[[25, 1, 0, 25, 1], [1, 25, 0, 1, 25]],
[[25, 26, 26, 26, 1], [1, 26, 26, 26, 25]],
[[26, 25, 26, 0, 1], [1, 0, 26, 25, 26]]}





"for n = ", 28, "h = ", 2, "solutions are:"
{}

"for n = ", 28, "h = ", 3, "solutions are:"
{}

"for n = ", 28, "h = ", 4, "solutions are:"
{[[21, 20, 6, 7], [7, 6, 20, 21]],
[[24, 23, 3, 4], [4, 3, 23, 24]],
[[26, 25, 1, 2], [2, 1, 25, 26]],
[[27, 26, 0, 1], [1, 0, 26, 27]]}

"for n = ", 28, "h = ", 5, "solutions are:"
{[[21, 20, 27, 6, 7], [7, 6, 27, 20, 21]],
[[24, 23, 27, 3, 4], [4, 3, 27, 23, 24]],
[[26, 25, 27, 1, 2], [2, 1, 27, 25, 26]],
[[27, 26, 27, 0, 1], [1, 0, 27, 26, 27]]}





"for n = ", 29, "h = ", 2, "solutions are:"
{[[6, 1], [1, 6]],
[[11, 1], [1, 11]],
[[12, 2], [2, 12]],
[[13, 1], [1, 13]],
[[18, 3], [3, 18]],
[[19, 9], [9, 19]],
[[22, 2], [2, 22]],
[[23, 5], [5, 23]],
[[24, 4], [4, 24]],
[[26, 2], [2, 26]],
[[27, 1], [1, 27]]}

"for n = ", 29, "h = ", 3, "solutions are:"
{[[6, 7, 1], [1, 7, 6]],
[[11, 12, 1], [1, 12, 11]],
[[12, 14, 2], [2, 14, 12]],
[[13, 14, 1], [1, 14, 13]],
[[18, 21, 3], [3, 21, 18]],
[[19, 28, 9], [9, 28, 19]],
[[20, 7, 1], [1, 7, 20]],
[[22, 24, 2], [2, 24, 22]],
[[23, 28, 5], [5, 28, 23]],
[[24, 28, 4], [4, 28, 24]],
[[26, 28, 2], [2, 28, 26]],
[[27, 28, 1], [1, 28, 27]]}





"for n = ", 29, "h = ", 4, "solutions are:"
{[[6, 1, 6, 1], [1, 6, 1, 6]],
[[6, 7, 7, 1], [1, 7, 7, 6]],
[[6, 13, 8, 1], [1, 8, 13, 6]],
[[6, 19, 9, 1], [1, 9, 19, 6]],
[[6, 25, 10, 1], [1, 10, 25, 6]],
[[11, 1, 11, 1], [1, 11, 1, 11]],
[[11, 12, 12, 1], [1, 12, 12, 11]],
[[11, 23, 13, 1], [1, 13, 23, 11]],
[[12, 2, 12, 2], [2, 12, 2, 12]],
[[12, 8, 13, 2], [2, 13, 8, 12]],
[[12, 14, 14, 2], [2, 14, 14, 12]],
[[12, 20, 15, 2], [2, 15, 20, 12]],
[[12, 26, 16, 2], [2, 16, 26, 12]],
[[13, 1, 13, 1], [1, 13, 1, 13]],
[[13, 14, 14, 1], [1, 14, 14, 13]],
[[13, 27, 15, 1], [1, 15, 27, 13]],
[[18, 3, 18, 3], [3, 18, 3, 18]],
[[18, 9, 19, 3], [3, 19, 9, 18]],
[[18, 15, 20, 3], [3, 20, 15, 18]],
[[18, 21, 21, 3], [3, 21, 21, 18]],
[[18, 27, 22, 3], [3, 22, 27, 18]],
[[19, 9, 19, 9], [9, 19, 9, 19]],
[[19, 28, 28, 9], [9, 28, 28, 19]],
[[20, 27, 8, 1], [1, 8, 27, 20]],
[[22, 2, 22, 2], [2, 22, 2, 22]],
[[22, 13, 23, 2], [2, 23, 13, 22]],
[[22, 24, 24, 2], [2, 24, 24, 22]],
[[23, 5, 23, 5], [5, 23, 5, 23]],
[[23, 28, 28, 5], [5, 28, 28, 23]],
[[24, 4, 24, 4], [4, 24, 4, 24]],
[[24, 10, 25, 4], [4, 25, 10, 24]],
[[24, 16, 26, 4], [4, 26, 16, 24]],
[[24, 22, 27, 4], [4, 27, 22, 24]],
[[24, 28, 28, 4], [4, 28, 28, 24]],
[[26, 2, 26, 2], [2, 26, 2, 26]],
[[26, 15, 27, 2], [2, 27, 15, 26]],
[[26, 18, 11, 1], [1, 11, 18, 26]],
[[26, 28, 28, 2], [2, 28, 28, 26]],
[[27, 1, 27, 1], [1, 27, 1, 27]],
[[27, 28, 28, 1], [1, 28, 28, 27]],
[[28, 27, 0, 1], [1, 0, 27, 28]]}

"for n = ", 29, "h = ", 5, "solutions are:"
{[[6, 1, 0, 6, 1], [1, 6, 0, 1, 6]],
[[6, 7, 7, 7, 1], [1, 7, 7, 7, 6]],
[[6, 13, 14, 8, 1], [1, 8, 14, 13, 6]],
[[6, 19, 21, 9, 1], [1, 9, 21, 19, 6]],
[[6, 25, 28, 10, 1], [1, 10, 28, 25, 6]],
[[11, 1, 0, 11, 1], [1, 11, 0, 1, 11]],
[[11, 12, 12, 12, 1], [1, 12, 12, 12, 11]],
[[11, 23, 24, 13, 1], [1, 13, 24, 23, 11]],
[[12, 2, 0, 12, 2], [2, 12, 0, 2, 12]],
[[12, 8, 7, 13, 2], [2, 13, 7, 8, 12]],
[[12, 14, 14, 14, 2], [2, 14, 14, 14, 12]],
[[12, 20, 21, 15, 2], [2, 15, 21, 20, 12]],
[[12, 26, 28, 16, 2], [2, 16, 28, 26, 12]],
[[13, 1, 0, 13, 1], [1, 13, 0, 1, 13]],
[[13, 14, 14, 14, 1], [1, 14, 14, 14, 13]],
[[13, 27, 28, 15, 1], [1, 15, 28, 27, 13]],
[[17, 15, 10, 13, 1], [1, 13, 10, 15, 17]],
[[18, 3, 0, 18, 3], [3, 18, 0, 3, 18]],
[[18, 9, 7, 19, 3], [3, 19, 7, 9, 18]],
[[18, 15, 14, 20, 3], [3, 20, 14, 15, 18]],
[[18, 21, 21, 21, 3], [3, 21, 21, 21, 18]],
[[18, 27, 28, 22, 3], [3, 22, 28, 27, 18]],
[[19, 9, 0, 19, 9], [9, 19, 0, 9, 19]],
[[19, 28, 28, 28, 9], [9, 28, 28, 28, 19]],
[[20, 7, 21, 7, 1], [1, 7, 21, 7, 20]],
[[20, 27, 28, 8, 1], [1, 8, 28, 27, 20]],
[[22, 2, 0, 22, 2], [2, 22, 0, 2, 22]],
[[22, 13, 12, 23, 2], [2, 23, 12, 13, 22]],
[[22, 24, 24, 24, 2], [2, 24, 24, 24, 22]],
[[23, 5, 0, 23, 5], [5, 23, 0, 5, 23]],
[[23, 28, 28, 28, 5], [5, 28, 28, 28, 23]],
[[24, 4, 0, 24, 4], [4, 24, 0, 4, 24]],
[[24, 10, 7, 25, 4], [4, 25, 7, 10, 24]],
[[24, 16, 14, 26, 4], [4, 26, 14, 16, 24]],
[[24, 22, 21, 27, 4], [4, 27, 21, 22, 24]],
[[24, 28, 28, 28, 4], [4, 28, 28, 28, 24]],
[[26, 2, 0, 26, 2], [2, 26, 0, 2, 26]],
[[26, 15, 14, 27, 2], [2, 27, 14, 15, 26]],
[[26, 28, 28, 28, 2], [2, 28, 28, 28, 26]],
[[27, 1, 0, 27, 1], [1, 27, 0, 1, 27]],
[[27, 28, 28, 28, 1], [1, 28, 28, 28, 27]],
[[28, 27, 28, 0, 1], [1, 0, 28, 27, 28]]}





"for n = ", 30, "h = ", 2, "solutions are:"
{}

"for n = ", 30, "h = ", 3, "solutions are:"
{}

"for n = ", 30, "h = ", 4, "solutions are:"
{[[20, 19, 9, 10], [10, 9, 19, 20]],
[[24, 23, 5, 6], [6, 5, 23, 24]],
[[25, 24, 4, 5], [5, 4, 24, 25]],
[[27, 26, 2, 3], [3, 2, 26, 27]],
[[28, 27, 1, 2], [2, 1, 27, 28]],
[[29, 28, 0, 1], [1, 0, 28, 29]]}

"for n = ", 30, "h = ", 5, "solutions are:"
{[[11, 7, 15, 22, 3], [3, 22, 15, 7, 11]],
[[19, 16, 8, 13, 2], [2, 13, 8, 16, 19]],
[[20, 19, 29, 9, 10], [10, 9, 29, 19, 20]],
[[24, 23, 29, 5, 6], [6, 5, 29, 23, 24]],
[[25, 24, 29, 4, 5], [5, 4, 29, 24, 25]],
[[27, 26, 29, 2, 3], [3, 2, 29, 26, 27]],
[[28, 27, 29, 1, 2], [2, 1, 29, 27, 28]],
[[29, 28, 29, 0, 1], [1, 0, 29, 28, 29]]}