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.
bro ti krutoi
https://docs.python.org/3/reference/expressions.html#shifting-operations
I didn't know that << existed!
That's cool though
I did 4.5 :)
sum(x^k,{k,1,infinity})=1/(1-x)
Derivative of x on both sides,→
sum(kx^(k-1))=1/(1-x)^2
then
sum(kx^k)=x/(1-x)^2
The domain of convergence of the series is (-1,1)
This comment is hidden because it contains spoiler information about the solution
Thanks! That's good to know. That would certainly make the expression a bit cleaner.
Best solution imho. But because (almost) all meta characters loose their special meaning within a bracket expression, you don't need the 2nd and 4th backslash.
n10 is only chosen for passing the tests, so it's not a valid limit for large n (i had chosen n7 :).
OK, I see. Thanks for the reference.
Hi Eric,
it's a bit shift operator, see e.g. https://wiki.python.org/moin/BitwiseOperators.
Cheers,
Enrico
This comment is hidden because it contains spoiler information about the solution