Connection between PlaintextModulus and MultiplicativeDepth

Hello,

My issue that choosing a higher MultiplicativeDepth will create an error,
in the PlaintextModulus.

When setting the MultiplicativeDepth to 3 or 4 everything will compile fine.
Between 5 and 9 i get the first error:

“terminate called after throwing an instance of ‘lbcrypto::math_error’
what(): /usr/local/include/openfhe/core/math/nbtheory-impl.h:191 Please provide a primeModulus(q) and a cyclotomic number(m) satisfying the condition: (q-1)/m is an integer. The values of primeModulus = 536903681 and m = 65536 do not satisfy this condition
./run.sh: line 3: 4414 Aborted (core dumped) ./test and above ten i get the second of the following errors:”

Above 10 i get:
“terminate called after throwing an instance of ‘lbcrypto::math_error’
what(): /usr/local/include/openfhe/core/math/nbtheory-impl.h:191 Please provide a primeModulus(q) and a cyclotomic number(m) satisfying the condition: (q-1)/m is an integer. The values of primeModulus = 536903681 and m = 131072 do not satisfy this condition
./run.sh: line 3: 4448 Aborted”

For debugging i watched the pallisade webinar 3:
https://www.openfhe.org/portfolio-item/homomorphic-encryption-for-palisade-users-3/

Thank you in advance,
Maximilian Krug

P.S.
My current parameters are:

// Sample Program: Step 1 - Set CryptoContext
CCParams parameters;
parameters.SetMultiplicativeDepth(4);
parameters.SetPlaintextModulus(536903681); //47030924089
// should replace the modReduce() call after every evalMult() call
parameters.SetScalingTechnique(FLEXIBLEAUTOEXT);

CryptoContext cryptoContext = GenCryptoContext(parameters);
// Enable features that you wish to use
cryptoContext->Enable(PKE);
cryptoContext->Enable(KEYSWITCH);
cryptoContext->Enable(LEVELEDSHE);

The plaintext modulus t you are using dos not satisfy the constraint: t \bmod m =1

See Automaticly find a good Plaintext Modulus - #2 by ypolyakov for the instructions on how to find a plaintext modulus.