This HTML5 document contains 5 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
n4stackexchange.
isaphttp://webisa.webdatacommons.org/prov/
isahttp://webisa.webdatacommons.org/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
provhttp://www.w3.org/ns/prov#
xsdhhttp://www.w3.org/2001/XMLSchema#
Subject Item
isap:515038179
prov:wasDerivedFrom
isa:311015841
Subject Item
isa:311015841
rdf:type
prov:Entity
prov:value
This is all true, but judging from the comments, the OP is asking, whether for example in the case $p=7$, $a=3$ the number $r$ belongs to the set $\{a^0,a^4\}$.
prov:wasQuotedFrom
n4:com
Subject Item
isap:9234141
prov:wasDerivedFrom
isa:311015841