Digital Gardening

1. Germination powder

The first step in growing a digital tree is to grow a seedling from a seed. To do this, as with any seed, you need to give it some water and warmth, but digital seedlings need more than just that: a very exact amount of a special powder is required - give it just one powder unit more or less, and it will die!

Luckily, you can calculate the amount of the powder by doing some computations with the digital representation of the seed, which is a 32-character string, with each character being a hexadecimal digit (0-9, a-f). (Your seed digital representation is available in the inputs pane on the right.)

The amount of the powder required should be calculated in the following way:

  • The digits should be paired: first with last, second with the second from the end, and so on.
  • Then, each pair should be multiplied by the pair index (1-based).

Example:

For a shorter seed 01ab2f, the result would be:
1 × (0 + 15) + 2 × (1 + 2) + 3 × (10 + 11) = 84

What is the amount of the powder required for your seed?