โ† PayPal questions

Count colorings of an n x 3 grid with 3 colors

Filed under PayPal

Count the number of valid colorings of an n x 3 grid using 3 colors such that no two adjacent cells in the same row or column have the same color, modulo 10^9+7.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related PayPal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.