Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: [OT] math fulguration

by choroba (Cardinal)
on Apr 06, 2021 at 14:29 UTC ( [id://11130898]=note: print w/replies, xml ) Need Help??


in reply to Re: [OT] math fulguration
in thread [OT] math fulguration

I guess the English formula should be fixed with s/ multiplied\K for n-1/ by a-1/, i.e.
3^3 = 1 + (3 - 1) * (3^0 + 3^1 + 3^2) = 1 + 2 * (1 + 3 + 9) = 1 + 2 * +13 = 1 + 26 = 27
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: [OT] math fulguration
by talexb (Chancellor) on Apr 06, 2021 at 17:23 UTC

    Yes -- it's missing a 'multiplied by' in exactly the place you're describing.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130898]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found