All pastes #410131 Raw Edit

Unnamed

public text v1 · immutable
#410131 ·published 2007-03-26 04:16 UTC
rendered paste body
aaaa
bbbb
cccc

I converted this to an array like:

aaaabbbbcccc

I know x and y which are coordinates for the original matrix. now I need to get the position in the long array. I need the formula for it