#NEWLINE# def _eval_rewrite_as_bernoulli( self , n ) : #NEWLINE# #INDENT# if ( n . is_integer and n . is_nonnegative ) : #NEWLINE# #INDENT# return ( ( ( 1 - ( S ( 2 ) ** n ) ) * bernoulli ( n ) ) * 2 )