(n)
return s[:14]
Returns a string containing 14 digits after the nth value of pi in hex
       The decimal has been taken out of the number, so
       n = 0[0] = 3 # First digit of pi in hex, 3

    Examples
    ========

    >>> from sympy.ntheory.bbp_pi import pi_hex_digits
    >>> pi_hex_digits(0)
    '3243f6a8885a30'
    >>> pi_hex_digits(10)
    '5a308d313198a2'
Returns a string containing 14 digits after the nth value of pi in hex
       The decimal has been taken out of the number, so
       n = 0[0] = 3 # First digit of pi in hex, 3
Returns a string containing 14 digits after the nth value of pi in hex The decimal has been taken out of the number so n = 0 [ 0 ] = 3 # First digit of pi in hex 3
def pi_hex_digits(n):
    """Returns a string containing 14 digits after the nth value of pi in hex
       The decimal has been taken out of the number, so
       n = 0[0] = 3 # First digit of pi in hex, 3

    Examples
    ========

    >>> from sympy.ntheory.bbp_pi import pi_hex_digits
    >>> pi_hex_digits(0)
    '3243f6a8885a30'
    >>> pi_hex_digits(10)
    '5a308d313198a2'
    """

    # main of implementation arrays holding formulae coefficients
    n -= 1
    a = [4, 2, 1, 1]
    j = [1, 4, 5, 6]

    #formulae
    x = + (a[0]*_series(j[0], n)
         - a[1]*_series(j[1], n)
         - a[2]*_series(j[2], n)
         - a[3]*_series(j[3], n)) & (16**(_dn(n)) - 1)

    s = ("%014x" % x)
    #s is constrained between 0 and 14
    return s[:14]
def pi_hex_digits ( n ) : # main of implementation arrays holding formulae coefficients n -= 1 a = [ 4 , 2 , 1 , 1 ] j = [ 1 , 4 , 5 , 6 ] #formulae x = + ( a [ 0 ] * _series ( j [ 0 ] , n ) - a [ 1 ] * _series ( j [ 1 ] , n ) - a [ 2 ] * _series ( j [ 2 ] , n ) - a [ 3 ] * _series ( j [ 3 ] , n ) ) & ( 16 ** ( _dn ( n ) ) - 1 ) s = ( "%014x" % x ) #s is constrained between 0 and 14 return s [ : 14 ]