Counting adjacencies with difference at most one in -ary words | Synapse