DEV Community

Stephen Camilo
Stephen Camilo

Posted on

Smarandache Sequence in python

Smarandache Sequence in Python

[(((10**n)-1)/9)*n for n in arr]

Output:
1
22
333
4444
...

Top comments (0)