Numbers with equal rises and falls: Difference between revisions

m
added commas, simplfied the ;See also: section.
m (added whitespace and highlighting, added the word "decimal", moved the (URL) reference to the OEIS entry to ";See also:".)
m (added commas, simplfied the ;See also: section.)
Line 1:
{{draft task}}
 
When a number is written in base 10,   adjacent digits may "rise" or "fall" as the number is read   (usually from left to right).
 
Line 10 ⟶ 11:
 
;Examples:
:* &nbsp; The number &nbsp; '''726169726,169''' &nbsp; has &nbsp; '''3''' &nbsp; rises and &nbsp; '''2''' &nbsp; falls, &nbsp; so it <u>isn't</u> in the sequence.
:* &nbsp; The number &nbsp; &nbsp; '''8354883,548''' &nbsp; has &nbsp; '''2''' &nbsp; rises and &nbsp; '''2''' &nbsp; falls, &nbsp; so it &nbsp; <u>is</u> &nbsp; in the sequence.
 
 
;Task:
:* &nbsp; Print the first &nbsp; '''200''' &nbsp; numbers in the sequence
:* &nbsp; Show that the &nbsp; '''10 millionth''' &nbsp; (10,000,000<sup>th</sup>) &nbsp; number in the sequence is &nbsp; '''4190900241,909,002'''
 
 
;See also:
* &nbsp; OEIS Sequence &nbsp;[[OEIS:A296712|A296712]] &nbsp; describes numbers whose digit sequence in base 10 have equal "rises" and "falls". &nbsp;[[OEIS:A296712]].