Problem #PRU-100411

Problems Number Theory Arithmetic operations. Number identities

Problem

Can you arrange numbers from 1 to 9 in one line so that sums of digits of neighbouring numbers differ only by 2 or by 3?