Renkatsu

Renkatsu is a Japanese logic puzzle. You have to divide the grid into areas in which all numbers from 1 to N appear exactly once.