Yuav ua li cas koj pom tus lej tom ntej hauv koob?
Yuav ua li cas koj pom tus lej tom ntej hauv koob?

Video: Yuav ua li cas koj pom tus lej tom ntej hauv koob?

Video: Yuav ua li cas koj pom tus lej tom ntej hauv koob?
Video: Koj lub Npe Yog Koj txoj HMoo 2024, Lub peb hlis ntuj
Anonim

Ua ntej, nrhiav qhov sib txawv rau cov ib ntus . Tshem tawm thawj lub sij hawm los ntawm ob lub sij hawm . Tshem tawm qhov thib ob lub sij hawm los ntawm peb lub sij hawm . Yuav nrhiav tau tom ntej no tus nqi, ntxiv rau qhov kawg muab tus lej.

Tsis tas li ntawd, tus lej tom ntej yog dab tsi hauv koob?

Cia tus tus lej tom ntej hauv ib ntus yog x,ta ib ntus 7, 2, 0, 7, 8, 4, 3, x. Qhov no yog ib ib ntus nyob rau hauv uas cov sum ntawm txhua tom qab 4 tus lej yog incremented los ntawm 1. Yog li, tus tus lej tom ntej hauv kab ke yuav 11.

Ib sab saum toj, dab tsi los tom ntej qauv? Nyob rau hauv ib tug recursive qauv , rov ua dua ntawm txoj cai lossis cov txheej txheem tuaj yeem siv los txuas ntxiv cov kab ke lossis nrhiav qhov tseem ceeb ntawm cov ntsiab lus uas ploj lawm los ntawm qhov sib lawv liag. 1, 2, 3, 4, 5, … 1, 2, 3, 4, 5, ldots 1, 2, 3, 4, 5, … 3, 5, 7, 11, 13, 17,.

Ib yam li ntawd, koj tuaj yeem nug, tus lej tom ntej yog dab tsi hauv kab lus 7 2 0?

11

Tus lej tom ntej yog dab tsi hauv ntu 1 11 21?

1 , 11 , 21 , 1211, 111221, 312211, 13112221, 1113213211, ( ib ntus A005150 hauv OEIS). Tsim kom muaj ib tug tswv cuab ntawm lub ib ntus los ntawm tus tswv cuab dhau los, nyeem tawm tus lej ntawm tus tswv cuab dhau los, suav cov tus lej ntawm cov lej hauv pawg ntawm tib tus lej.

Pom zoo: