Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please check why 183,187,189 in your list and you will find the answer.
447 is the correct value.
Hey @devheptagon - I don't use C# so I can't see your solution, but I can confirm the tests are correct - 447 is indeed the
u(100)
value.I compared your list of 100 values to mine and the first 99 values do in fact seem correct, so I don't know why exactly this error is appearing for
u(100)
.However, you can tell that your own solution is wrong somehow just by looking at its results: your own solution above contains the value
223
(after202
and before231
) - so if your algorithm includes223
it should also include2 * 223 + 1 = 447
. Yet447
doesn't appear in your result.So I would start by looking there for hints on what to debug. You are also missing the value
463 = 2 * 231 + 1
before471
if that helps you debug as well (note that231
appears in your current list but463
does not).edit - you are also missing lots of numbers between
607
and706
- there are12
missing values there that your solution is not producing at the moment, so indeed it seems like your approach is incorrect somehow for larger values.