ROSECODE 474
Records in Good Sequences
A sequence of positive integers, not necessarily distinct is a good sequence if:
- when , then for
- the first occurence of in appears before the last occurence of
Examples:
is not a good sequence: the 1st occurence of 2 is after the last 3.
The following sequences are good:
In a sequence is a record if it is greater than all elements before it :
The sequence contains 3 records:
Amongst all good sequences with 100 elements in , how many have 3 records?
Answer format: Give the last 10 significant digits (before trailing 0s)
- when
- the first occurence of
Examples:
The following sequences are good:
In a sequence
The sequence
Amongst all good sequences with 100 elements in
Answer format: Give the last 10 significant digits (before trailing 0s)