Hello folks!

I had a mathematical fulguration (is rare because I have troubles with two digits divisions..) and I'd like to know if this is a known fact. In English it goes like:

> The n power of a number a is equal to 1 plus the summation from a**n-1 to a**0 multiplied by n-1

I'm not able to draw it in nice math signs, but in perl is like:

perl -E "map{ $sigma += $ARGV[0]**$_ }0..$ARGV[1]-1; say 'true' if $AR +GV[0]**$ARGV[1] == 1+( $sigma * ($ARGV[0]-1))"

In the chat choroba was so kind to prove it mathematically (I leave to him the right to point to that ;)

I proved empirically and works also for powers of 2 (which I already known the formula and in my case becomes a reduced form as it implies * 1 ) and for powers of 1 where it implies * 0

It also works for n**1 and n**0 so it seems a nice generalisation.

Incidentally, there is a nicer way to do the above Σ in perl?

Does some mathematician knows if the above fulguration I had is a known fact?

L*

PS fixed English formula using choroba fix below

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to [OT] math fulguration by Discipulus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.