OFFSET
1,2
COMMENTS
Rules for the puzzle:
- the shape of the puzzle is rectangular
- the shape of the pieces is square (or rectangular, as long as they are all the same size)
- the puzzle is completely filled
How to find the sequence:
- find the factors of n
- find the lowest sum of the factors (that multiply to n)
- sum these factors, multiply by 2, subtract 4 (calculate the number of edge pieces)
EXAMPLE
x (n=1, edge pieces = 1)
xxx (n=3, edge pieces = 3)
xx (n=4, edge pieces = 4)
xx
xxx (n=9, edge pieces = 8)
x.x
xxx
xxxxx (n=10, edge pieces = 10)
xxxxx
xxxxxxxxxxx (n=11, edge pieces = 11)
xxxxxxx (n=14, edge pieces = 14)
xxxxxxx
xxxxxxxxxxxxxxxxxxx (n=19, edge pieces = 19)
xxxxx (n=20, edge pieces = 14)
x...x
x...x
xxxxx
PROG
(PARI) a(n)={fordiv(n, d, if(d<n && n/d<=d, return(2*(n/d+d-2)))); n} \\ Andrew Howroyd, Oct 12 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Arnout Nell, Oct 09 2024
STATUS
approved