Hello guys,
I have a sequence:
<colgroup><col></colgroup><tbody>
</tbody>
I want to extend it indefinitely, well until it fits, but i was not sure what the best approach would be.
I was thinking of taking it as a string and use split to the first non 0, then turn that into a long add 4 to it and then switch it into a string and fill it up with 0 to make it an 8 digit. But i was unsure of how i can formulate my split. Any ideas? Or maybe a better approach?
I have a sequence:
00000001 |
00000005 |
00000009 |
00000013 |
00000017 |
00000021 |
<colgroup><col></colgroup><tbody>
</tbody>
I want to extend it indefinitely, well until it fits, but i was not sure what the best approach would be.
I was thinking of taking it as a string and use split to the first non 0, then turn that into a long add 4 to it and then switch it into a string and fill it up with 0 to make it an 8 digit. But i was unsure of how i can formulate my split. Any ideas? Or maybe a better approach?