How to calculate the time series of birthdays?

When a day is always dry, the formula calculated according to the daily workload is:

A added a, b Geng c first;

Bingxin gave birth to five sons, and Dingren Gengzi lived;

Where can I send it? I don't need to move it.

In other words, as long as we know the heavenly stems in childhood, the other eleven hours of heavenly stems can be deduced in turn.

For example, it is necessary to infer the main branch at noon. Twelve o'clock noon is noon, and a thousand days is the responsibility, "Ding Ren Geng Zi Ju". The time of this day is Geng Zi, the next hours are Xin Chou, Ren Yin, Gui Mao, Chen Jia, Yi Si, and Bing Wu, and noon on Ren Wu Day 12 is Bing Wu.

Extended data:

Use sixty jiazi to represent hours. The first hour of Jiazi Day is Jiazi, the second hour is Night Ugliness, followed by Bing Yin, Ding Mao, Chen Wu, and finally Yi Hai. The first hour after the picnic day is Bingzi, and so on. The first hour of Bing Yin Day is Wuzi, the first hour of Ding Mao Day is Gengzi, and the first hour of Chen Wuri is Renzi.

It takes 60 hours from Jiazi Day to Chen Wuri, and 60 Jiazi are arranged in five days. The sixth day is already three days, and the hour starts from Jiazi. In this way, according to daily work and rest, the hours of A and B are exactly the same, that is, when the first hour is Jiazi, the hours of B and G are exactly the same, and B is C, that is, the first hour is Bingzi.

The third day is exactly the same as the new day, and the first hour is the fifth day. The time of the day is exactly the same, the day is a boxer, and the first time is a boxer. The hours of Mayday and Decimal Day are exactly the same, with the day as the duty and the first as the son.