Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2018-10-11 14:46:03
Size: 621
Comment:
Revision 5 as of 2019-10-09 14:53:51
Size: 704
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
#acl AdminGroup:read,write,delete,revert,admin TadashiIijima:read,write,delete,revert,admin IijimaStaffGroup: IijimaGroup: IijimaObogGroup: GuestGroup: Known: All:read #acl AdminGroup:read,write,delete,revert,admin TadashiIijima:read,write,delete,revert,admin IijimaStaffGroup: IijimaGroup: IijimaObogGroup: GuestGroup: Known: All:
Line 7: Line 7:
[ <<Action(edit)>> ]
Line 8: Line 9:
 * プログラムの本質的な部分は下記の 2 行 の[[Python/Lang/Function/Paramater/Contents|関数定義|target="_blank"]]です.  * 例題プログラムの核心的な部分は..
  *
下記の 2 行 の[[Python/Lang/Function/Paramater/Contents|関数定義|target="_blank"]]です.
Line 11: Line 13:
  * 2の冪乗よりも 1 小さい自然数、すなわち {{{2^n − 1}}}   * 2の[[https://ja.wikipedia.org/wiki/冪乗|冪乗]]よりも 1 小さい自然数、すなわち {{{2^n − 1}}}
Line 13: Line 15:
{{{#!highlight python {{{#!highlight python  numbers=off

[ edit ]

def mersenne_number( n ):
    return( 2 ** n - 1 )

SoftEng: Python/Prog/Example/02/Ex_002a/Digest (last edited 2019-10-09 17:09:12 by TadashiIijima)