There may seem to be limitless patterns on wallpaper but mathematically speaking there are only seventeen.