13
1
The following is the rhombus sequence.
1
121
12321
1234321
123454321
12345654321
1234567654321
123456787654321
12345678987654321
Your task is to output this, taking no input and using standard output methods (STDOUT, list of numbers or list of strings, etc.).
There's a hitch. You may only use up to one loop - no nested loops. Recursion counts as a loop, so you can either recurse or loop, not both. Non-standard languages will be dealt with on a case-by-case basis.
This is code-golf, so shortest program in bytes wins. This is kolmorgorov-complexity, so you may not take any input whatsoever.
1Hey pluto, I edited your challenge to be on-topic here. Let me know if you disagree with anything I said - I think you'll get answers now though, if it gets reopened. – Stephen – 2017-07-27T12:41:26.950
Appreciate the effort @StepHen! I think I should have put my question this way itself. – pluto20010 – 2017-07-27T12:51:34.343
3Does mapping over a list count as a loop? – Business Cat – 2017-07-27T13:16:05.867
5
This is a do X without Y challenge, which are discouraged.
– Mego – 2017-07-27T13:18:14.1632FYI: This is
1²
,11²
,111²
, ...,111111111²
– Engineer Toast – 2017-07-27T13:25:23.3501@Shaggy I don't think so, this is [tag:restricted-source]. – Erik the Outgolfer – 2017-07-27T13:36:02.413
4Banning loops is not a source restriction. – Post Rock Garf Hunter – 2017-07-27T14:09:45.640
Is looping & recursion only banned at the highest level (explicitly instructed in the source) or should lower levels avoid them too; if so to what level? – Jonathan Allan – 2017-07-27T19:14:34.677