A nerdy puzzle

1 -> 2

2 -> 5

3 -> 5

4 -> 4

5 -> 5

6 -> 6

7 -> 3

8 -> 7

9 -> 6

Can you recognise the pattern?

Extra hint:
0 -> 6

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.