Count ways to paint N buildings with K colours with no equal neighbours
Filed under National Instruments
The question
Count colourings of N buildings in a row using K colours so adjacent buildings differ, modulo 1e9+7.
No write-up yet. Related questions below have one.
Related National Instruments questions
Collected from public candidate posts and coding forums. Updated Nov 2026.