Heavenly stems and earthly branches, referred to as "Ganzhi" for short, originated from the observation of astronomical phenomena in ancient China. Ten branches refer to meeting, gentleness, fortitude, harmony, Tu Youyou, Zhang Shang, emphasizing light, mystery and zhaoyang. Twelve branches refer to being sleepy, enthusiastic, photogenic, single-handed, in charge of Xu, in the wild, escaping, coordinating, going to the beach, in a bad mood, castrating, and having great depth.
Simplified heavenly stems and earthly branches: "A, B, C, D, E, Ji, G, Xin, Ren, Gui" is called ten heavenly stems, and "Zi, Ugly, Yin, Mao, Chen, Si, Wu, Wei, Shen, You, Xu, Hai" is called twelve earthly branches. Ten days and twelve earthly branches are the evolution of the five elements and indispensable basic knowledge in prediction.
Heavenly stems and earthly branches push algorithm
1, annual dry formula: annual dry = annual unit number -3 (applicable to any year in the first year of the public year, the unit number is less than or equal to 3, borrow 10). Take 20 19 as an example, its unit number is 9,9-3 = 6, which means the annual stem is its own.
2. Annual expenditure formula: annual expenditure = (year +7)÷ 12 remainder (divisible by remainder 0, that is, remainder 12= ugly), taking 20 19 as an example, (2019+7) \
3, the monthly dry formula: the monthly branch is fixed, for example, the first day of the first month, only the monthly dry is calculated. Monthly dryness = annual dryness ×2+ months, for example, the monthly dryness of 1969 (unitary month) in August (unitary month) is 6× 2+8 = 20. If the period of 10 is removed, the tenth place of heavenly dryness is decyl, and the monthly dryness is decyl.
4. Daily trunk formula: 1900- 1999 Daily trunk base = (year-end double digits +3) × 5+55+ (year-end double digits-1)/4.
Daily branch and branch base in 2000- 1999 = (two digits at the end of the year +7) × 5+ 15+ (two digits at the end of the year+19)/4 (only quotient is used, the remainder is not used, and 60 is removed after calculation).
The above contents refer to Baidu Encyclopedia-Twelve Earthly Branches.