benchmarks.wiki / Public workspace

Omni-MATH / Given a rearrangement of the numbers from 1 to n, each pair of consecutive elements a and b of the sequence can be either increasing (if a<b ) or decreasing (if b<a ). How many rea…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

problem

Given a rearrangement of the numbers from 1 to nn, each pair of consecutive elements aa and bb of the sequence can be either increasing (if a<ba<b ) or decreasing (if b<ab<a ). How many rearrangements of the numbers from 1 to nn have exactly two increasing pairs of consecutive elements?
Plain-text mathematical notation (without MathML)
Given a rearrangement of the numbers from 1 to n, each pair of consecutive elements a and b of the sequence can be either increasing (if a<b ) or decreasing (if b<a ). How many rearrangements of the numbers from 1 to n have exactly two increasing pairs of consecutive elements?
Original LaTeX notation
Given a rearrangement of the numbers from 1 to $n$, each pair of consecutive elements $a$ and $b$ of the sequence can be either increasing (if $a<b$ ) or decreasing (if $b<a$ ). How many rearrangements of the numbers from 1 to $n$ have exactly two increasing pairs of consecutive elements?

Discussion

Discussion

No discussion posts on this page yet. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. Use the posting template.

Source and history

Official source

initial import