Meertens number

From HandWiki

In number theory and mathematical logic, a Meertens number in a given number base b is a natural number that is its own Gödel number. It was named after Lambert Meertens by Richard S. Bird as a present during the celebration of his 25 years at the CWI, Amsterdam.[1]

Definition

Let n be a natural number. We define the Meertens function for base b>1 Fb: to be the following:

Fb(n)=i=0k1pki1di.

where k=logbn+1 is the number of digits in the number in base b, pi is the i-prime number, and

di=nmodbi+1nmodbibi

is the value of each digit of the number. A natural number n is a Meertens number if it is a fixed point for Fb, which occurs if Fb(n)=n. This corresponds to a Gödel encoding.

For example, the number 3020 in base b=4 is a Meertens number, because

3020=23305270.

A natural number n is a sociable Meertens number if it is a periodic point for Fb, where Fbk(n)=n for a positive integer k, and forms a cycle of period k. A Meertens number is a sociable Meertens number with k=1, and a amicable Meertens number is a sociable Meertens number with k=2.

The number of iterations i needed for Fbi(n) to reach a fixed point is the Meertens function's persistence of n, and undefined if it never reaches a fixed point.

Meertens numbers and cycles of Fb for specific b

All numbers are in base b.

b Meertens numbers Cycles Comments
2 10, 110, 1010 n<296[2]
3 101 11 → 20 → 11 n<360[2]
4 3020 2 → 10 → 2 n<448[2]
5 11, 3032000, 21302000 n<541[2]
6 130 12 → 30 → 12 n<637[2]
7 202 n<734[2]
8 330 n<832[2]
9 7810000 n<930[2]
10 81312000 n<1029[2]
11 n<1144[2]
12 n<1240[2]
13 n<1339[2]
14 13310 n<1425[2]
15 n<1537[2]
16 12 2 → 4 → 10 → 2 n<1624[2]

See also

References

  1. Richard S. Bird (1998). "Meertens number". Journal of Functional Programming 8 (1): 83–88. doi:10.1017/S0956796897002931. 
  2. 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 2.13 2.14 (sequence A246532 in the OEIS)