# Print a bunch of uninteresting numbers!

An uninteresting number (which I totally didn't make up only for this challenge) is created like this:

1. Take a positive integer N
2. Create a new number O by adding the digits of N at the end of N
3. The final uninteresting number is O*N

For example for N=12:

1. O = 1212
2. O*N = 1212 * 12
3. Final number is 14544

# Input

A positive integer N (N > 0) or your language's equivalent. You don't have to catch incorrect input.

# Output

The corresponding uninteresting number.

# Test cases

  1 -> 11
2 -> 44
3 -> 99
10 -> 10100
174 -> 30306276


# Scoring

Shortest Code in Bytes wins.

• There must be a relevant OEIS entry... – MKII Jul 7 '16 at 10:52
• @Seims It was a joke, based on the "uninsteresting" name – MKII Jul 7 '16 at 11:10
• @MKII my bad, i don't speak joke – Seims Jul 7 '16 at 11:13
• Is taking the number as a string argument bending the rules a bit too much? – Dom Hastings Jul 7 '16 at 11:39
• Go ahead, bend the rules! :P – Seims Jul 7 '16 at 11:44

# Python 3, 43 bytes

x=int(input());print(10**len(str(x))*x+x)*x


## SAS, 32 Bytes

%macro x(a);%eval(&a&a*&a)%mend;


Macro language, so no string/numeric concept. Function style (so this doesn't return the value to the screen, that's your job, this just returns the value).

Examples:

86   %put %x(1);
11
87   %put %x(12);
14544


# Jolf, 4 bytes

Try it here!

*P+§


## Explanation

*P+§xxx
*     x   implicit input *
§x       implicit input as string
+  x      followed by implicit input
P         as a number


## Common Lisp (Lispworks), 9178 77 bytes

(defun f(n)(*(parse-integer(concatenate'string #1=(write-to-string n)#1#))n))

• I edited your answer so that it would show up as code. I don't know lisp, so I'm not sure. Is the newline is necessary? – James Jul 8 '16 at 7:20
• Is the newline is necessary? not necessary – sadfaf Jul 8 '16 at 7:31
• I'm not sure, that's why I'm asking you. Will this still run if you combined it into one line? – James Jul 8 '16 at 7:34
• yes, lisp separative sign is parentheses or blank space (etc. tabbar\Spacebar) – sadfaf Jul 8 '16 at 7:44

# T-SQL, 45 bytes

DECLARE @i INT = 12
SELECT CONCAT(@i, @i)*@i


# TI-BASIC, 22 or 24 bytes

Prompt X
X(X+X10^(1+int(log(X


Or, 22 bytes stored as a Y-var (basically a function).

# Python, 46 bytes

i=input("N:")           # Standard input
y=i+(i[-2:])            # Using strip method to take last two chars from input
print(int(y)*int(i))    # Temp convert strings into integers for maths and print the result.


# JavaScript, 25 bytes

### Golfed:

_=prompt();alert((_+_)*_)


### Ungolfed:

_=prompt();


### Explanation:

_=prompt();    - set variable to prompt
alert((_+_)*_) - alert output, which is the number plus itself, times itself


This code was originally written by TùxCräftîñg. Their original comment with the code can be found here.

# PHP, 32 bytes

function f($n){print($n.$n)*$n;}


Try it online!