I'm looking for something like this and I want to know how it's called; I'm pretty sure there is a term for it.
I will show an example: Let's say we take the number 9876. $x=9\cdot8+9\cdot7+9\cdot6+8\cdot7+8\cdot6+7\cdot6$ You can see I multiply each pair of digits and then add.