Jump to content

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

m
m (→‎{{header|Python}}: Added a functionally composed variant.)
Line 514:
 
===Functional===
 
Taking the first n terms from an infinite series:
<lang python>'''Sequence of 1s appended with a 3, then squared'''
 
Line 552 ⟶ 554:
seriesOfOnesEndingWithThree()
)
 
final = xs[-1]
w = len(str(final))
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.