It should probably be:
yups_hash = Hash[yups.zip(yups_values)]
With the caveat that I don't know what's supposed be happening, but the yups_hash
name implies it should be a hash, not an array with a bunch of arrays in it.
Once there's an actual hash the output for 20 is:
0 0 1
This matches the definition, at least.