Show the (decimal) value of a number of 1s appended with a 3, then squared: Difference between revisions

Realize in F#
m (added a verb to the task's requirements, changed "followed" to appended, made it clear that decimal numbers are to be used.)
(Realize in F#)
Line 180:
1234567901234567901238765432098765432098769 1111111111111111111113</pre>
 
=={{header|F_Sharp|F#}}==
<lang fsharp>
[3L;13L;113L;1113L;11113L;111113L;1111113L;11111113L;111111113L]|>List.iter(fun n->printfn "%10d->%d" n (n*n))
</lang>
{{out}}
<pre>
3->9
13->169
113->12769
1113->1238769
11113->123498769
111113->12346098769
1111113->1234572098769
11111113->123456832098769
111111113->12345679432098769
</pre>
=={{header|Factor}}==
<big>{{math|a(<var>n</var>) &#61; ((10<sup><var>n</var>+1</sup> - 1) / 9 + 2)<sup>2</sup> }}</big>
2,172

edits