Problem 52462. Easy Sequences 1: Find the index of an element
The nth element of a series A is defined by:
. Obviously, the first element
. Given the nth element
, find the value of the corresponding index n.
Solution Stats
Problem Comments
-
8 Comments
Show
5 older comments
Dyuman Joshi
on 24 Sep 2021
Because you are not doing what the question is asking
Asif Newaz
on 21 Aug 2022
I think the last test case is wrong
Rafael S.T. Vieira
on 12 Nov 2022
Rahul Gulia, in the last test, there will be numbers greater than 1000. And the last test is not wrong. Just remember that indexes are always positive (I had trouble with that also, we are so focused on the sequence that we forget that indexes can't be negative).
Solution Comments
Show commentsGroup

Special Functions II
- 10 Problems
- 1 Finishers
- Estimate π from certain values of the zeta function
- Evaluate the generalized hypergeometric function
- Compute an integral of an exponential function
- Determine aquifer properties: unsteady pump test in a confined aquifer
- Compute an integral of a product of sinusoids
- Compute a sum of Ramanujan
- Compute the fractional derivative
- Compute the sum of reciprocals of quadratics
- Evaluate the Kelvin functions
- Compute the period of a pendulum started from a finite initial angle
Problem Recent Solvers47
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!